Help - Action to pull local docker image #5926
Unanswered
ReaperMantis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I hope this is an easy one, I couldn't find an answer for it.
I've got an
action.ymlthat I would like to use a local docker image that's already built on my system:aarch64-cross-compile-toolkit.My
action.ymlis set up as follows:If the action uses
image: "aarch64-cross-compile-toolkit:latest", thenactwill attempt to build a new image from a docker file in the same folder as the action. This is not what I want to do since the image is already built.actalso names the image in its own way (act-github-actions-cross-compile-dockeraction:latest). If I put the docker file in the same directory, it will not build the image anyway. Here is an excerpt from the logs:If the action uses
image: "docker://aarch64-cross-compile-toolkit:latest",actwill attempt to get the image from docker.io.Is there a way to use the local image? Is there an alternative way to do the same thing?
As a workaround, I've run the command manually to create the image the way
actis looking for:$ docker build -t act-github-actions-cross-compile-dockeraction:latest /home/ReaperMantis/Workspace/Orange-Pi-Media-Server/.github/actions/cross-compile`Beta Was this translation helpful? Give feedback.
All reactions