Git Product home page Git Product logo

Comments (5)

mre avatar mre commented on August 11, 2024 1

0.14.3 is out now. I retriggered the pipeline. Don't know why it wasn't triggered before, but it wasn't the tagging. That part works. So we just need to keep an eye out for the next release. Maybe I'm missing a trigger somewhere.

As you said, maintaining two registries would cause some overhead, so I'd prefer to avoid that. 😉

With that, I think we can close this.

from lychee.

mre avatar mre commented on August 11, 2024

Sorry, I don't understand what's the advantage of ghcr over Dockerhub. Why do we need both?

As of now, docker images are not tagged with new lychee version.
For example, we have 0.14.3 tag in GitHub releases but I don't have the image with that tag on DockerHub.

That's a bug. I think I'm missing the patch directive in the Docker workflow here:

type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}

Maybe that's all it takes to fix it.

I intend to use it in the following manner in a multistage pipeline.

FROM ghcr.io/lycheeverse/lychee:0.14.3 as lychee
COPY --from=lychee /usr/bin/lychee /usr/bin/lychee

This should already be possible (if the tag was available).

/tmp ❯❯❯ cat Dockerfile                                                                                                                                                                                       
FROM debian:latest
COPY --from=lycheeverse/lychee /usr/local/bin/lychee /usr/bin/lychee


/tmp ❯❯❯ docker build --tag foo .
[+] Building 0.6s (8/8) FINISHED  
...
                                                                                                                          
/tmp ❯❯❯ docker run --entrypoint /usr/bin/lychee foo
error: the following required arguments were not provided:
  <inputs>...

Usage: lychee <inputs>...

For more information, try '--help'.

Note that the path to lychee inside the Docker image is
/usr/local/bin/lychee (not /usr/bin/lychee).

from lychee.

kranurag7 avatar kranurag7 commented on August 11, 2024

I don't understand what's the advantage of ghcr over Dockerhub. Why do we need both?

We don't need both for sure, I just wanted to depend on ghcr.io for tagging. If the tagging issue is already solved via DockerHub registry then that will be great.

From a project perspective, using ghcr.io registry will allow everyone to run CI on forks otherwise, in current context, I've to change the name of the image in workflow file.
In case of ghcr.io we can use github.actor and more variables related to GitHub.
But I also don't want the project to maintain images in two registries so I'll tagging issue will solve the problem completely.

from lychee.

kranurag7 avatar kranurag7 commented on August 11, 2024

@mre @thomas-zahner Thank you for the new release.
I think images for v0.15.0 is missing in the registry.

On DockerHub, I can see that we have latest, master, latest-alpine, master-alpine tag but not the semver tag that one can track with ongoing releases.

I'll take a more deeper look into the pipeline during the weekend and see if I can fix it if it's not fixed already.

from lychee.

mre avatar mre commented on August 11, 2024

@kranurag7, sure, let's look into it. Could you create a new issue, though, as this one is closed? 🙂

from lychee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.