Help - Action to pull local docker image #5926
Replies: 1 comment
|
Use the prebuilt-image form and tell runs:
using: docker
image: docker://aarch64-cross-compile-toolkit:latest
args:
- ${{ inputs.command }}act --pull=falseThe two image syntaxes mean different things:
The remaining issue in your log is that Before running, verify the tag and architecture: docker image inspect aarch64-cross-compile-toolkit:latest \
--format '{{.Id}} {{.Os}}/{{.Architecture}}'
act --pull=false --container-architecture linux/arm64Use the architecture flag only if the workflow is supposed to run as ARM64 and your Docker installation can execute it. If the local image's architecture does not match If |
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`All reactions