Container Action that I published builds again when I call it? #133667
Replies: 2 comments
-
I also used https://github.com/github/issue-metrics/tree/main as an example for a container action. I doubt users of this action are required to rebuild the image each time the use this. Or do they? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've managed to get this working... but I'm not exactly sure why. And by "working" I mean it does a Pull instead of a Build (but the Pull is unauthorized). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The setup
I followed the instructions for building a Docker Container Action. I successfully built an image and published it to
ghcr.io/<my-user>/<my-repo>:release
.The problem
When I call this action, it doesn't run what I expect. It first builds the Dockerfile and then it runs the container. This is unexpected because I have already built the container and published it to ghcr.io. Why is this happening?
Here's my workflow
Here's the
action.yml
Additional info
I'm running a go program that simply prints hello world. It runs correctly and I see the output in the action logs. But it doesn't make sense that it needs to run docker build! I've alredy built the image!
Beta Was this translation helpful? Give feedback.
All reactions