Giter Club home page Giter Club logo

Comments (9)

pascalgn avatar pascalgn commented on August 15, 2024 2

I understand the need for this, but unfortunately this feature does not seem to be ready yet, see this forum thread: https://github.community/t5/GitHub-Actions/docker-pull-from-public-GitHub-Package-Registry-fail-with-quot/td-p/32782

However, I have pushed v0.6.0 to docker.pkg.github.com now, so when GH enables the feature, you should be able to switch to using the pre-built Docker image immediately.

For security reasons, I recommend to use the full SHA, when referencing the Docker image (as I also recommend when referencing the action from GH directly). So the workflow file should look like this:

# [...]
jobs:
  automerge:
    runs-on: ubuntu-latest
    steps:
      - name: automerge
        uses: "docker://docker.pkg.github.com/pascalgn/automerge-action/automerge-action:c7859ab63774304798c4dd36ed106b59bbf728974117a9f350cac756d80d9e37"
        # [...]

(the usual Docker syntax would be docker.pkg.github.com/pascalgn/automerge-action/automerge-action@sha256:c7859ab63774304798c4dd36ed106b59bbf728974117a9f350cac756d80d9e37, but for some reason GH chose to use a slightly different syntax here)

Also, I pushed that image manually, but when someone finds a good example where the action is automatically built and pushed to docker.pkg.github.com, feel free to link it here!

I will leave this issue open until GH fully supports pulling from docker.pkg.github.com in actions.

from automerge-action.

pascalgn avatar pascalgn commented on August 15, 2024 1

The action is now a JS action and no longer uses Docker now (see #125 and #135) so I will close this 😊

from automerge-action.

lawliet89 avatar lawliet89 commented on August 15, 2024

Github Actions have become GA and the minutes for private repositories have become chargeable. This will help save some minutes.

from automerge-action.

i-Gondor avatar i-Gondor commented on August 15, 2024

Just had a dig into this as running hundreds of this action a day is eating into our Actions minutes, and Microsoft still has not fixed this issue :(

Thanks for leaving this open though, hopefully we'll see a fix one day

from automerge-action.

jrjohnson avatar jrjohnson commented on August 15, 2024

Not sure I understand how this action differs from others I use, but I get An action could not be found at the URI 'https://api.github.com/repos/pascalgn/automerge-action/tarball/0.8.4' if I use uses: "pascalgn/[email protected]" is that caused by this issue? It's probably worth calling out in the readme because it seems to be unique to this action.

from automerge-action.

pascalgn avatar pascalgn commented on August 15, 2024

I think it's not related to this issue, it could be because you use 0.8.4 instead of v0.8.4. If it's fine for you, I would like to ask you to create a new issue for that topic, if you have additional questions/remarks.

from automerge-action.

jrjohnson avatar jrjohnson commented on August 15, 2024

Yup, that was the issue. Sorry for the noise! 😊

from automerge-action.

sgraczyk avatar sgraczyk commented on August 15, 2024

Hi, have you considered publishing the docker image to DockerHub until GitHub solves (if ever) the authentication issue with their own registry?

I'm referring to this answer in the community thread: https://github.community/t/docker-pull-from-public-github-package-registry-fail-with-no-basic-auth-credentials-error/16358/37

PS. I'm not a Docker 🧙 , therefore, I'm not sure if it'll work but I'm willing to help with reducing GH Action minutes usage in this case.

from automerge-action.

robert-hung-mox avatar robert-hung-mox commented on August 15, 2024

However, I have pushed v0.6.0 to docker.pkg.github.com now, so when GH enables the feature, you should be able to switch to using the pre-built Docker image immediately.

Also, I pushed that image manually, but when someone finds a good example where the action is automatically built and pushed to docker.pkg.github.com, feel free to link it here!

I will leave this issue open until GH fully supports pulling from docker.pkg.github.com in actions.

@pascalgn Could this allow us to cache the Docker image here?

from automerge-action.

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.