DEPRECATED. This action will no longer be maintained and cease to get new features in future.
Please migrate your workflows to use ishworkh/container-image-artifact-download@v1.0.0 instead. It includes same features for docker and it adds support for podman on top of docker.
Github action for downloading a docker image artifact. It downloads image artifact uploaded by docker-image-artifact-upload and loads into local docker daemon for use in a job.
It supports downloading image artifacts from
- same job
- different job in the same workflow
- different job in a different workflow in the same repository
- different job in a different workflow in a different repository
- Update
docker-image-image-download
action in workflows to following,
- name: Download an image
uses: ishworkh/container-image-artifact-download@v1.0.0
with:
image: "test_image:latest"
Variable container_engine
added in container-image-artifact-download
action defaults to docker
.
Required Image name that is to be downloaded.
Optional Repository in form of owner/name to download image from.
Optional Workflow name to download image from.
Optional Token with enough permissions to download artifact(s) from repo and workflow. It is required if workflow
is set to different workflow than the currently running.
Optional Filter workflow runs based workflow event. This takes the precedence over all filters if it is set.
Optional Filter workflow runs based on workflow conclusion. Possible values are success
, failure
, cancelled
, or skipped
.
Optional Filter workflow runs based on commit SHA.
Optional Filter workflow runs based on branch.
Optional Filter workflow runs based workflow event.
Path in node where docker image archive is downloaded. Eg. /tmp/foo_latest
for image foo:latest
.
...
jobs:
download_image:
- name: Checkout project
uses: actions/checkout@v2
- name: Download image
uses: ishworkh/docker-image-artifact-download@v2.0.1
with:
image: "test_image:latest"
...
jobs:
download_image:
- name: Checkout project
uses: actions/checkout@v2
- name: Download image
uses: ishworkh/docker-image-artifact-download@v2.0.1
with:
image: "test_image:latest"
workflow: "Some Another Workflow"
token: "secrettoken"
...
jobs:
download_image:
- name: Checkout project
uses: actions/checkout@v2
- name: Download image
uses: ishworkh/docker-image-artifact-download@v2.0.1
with:
image: "test_image:latest"
workflow: "Some Another Workflow"
token: "secrettoken"
workflow_run_id: "234343434234234"
...
jobs:
download_image:
- name: Checkout project
uses: actions/checkout@v2
- name: Download image
uses: ishworkh/docker-image-artifact-download@v2.0.1
with:
image: "test_image:latest"
workflow: "Some Another Workflow"
token: "secrettoken"
workflow_event: "dispatch_workflow"
branch: "main"
commit_sha: "8471d40bfc4d0abc8409ba9391bb592bd0f1deb4"
workflow_conclusion: "success"
...
jobs:
download_image:
- name: Checkout project
uses: actions/checkout@v2
- name: Download image
uses: ishworkh/docker-image-artifact-download@v2.0.1
with:
image: "test_image:latest"
repository: "owner/my-repo"
workflow: "Some Another Workflow"
token: "secrettoken"
- Update README about deprecation.
- Fix README.
- Add possibility to download image from another workflow/repository.
- Introduce semver versioning for github action releases. No versions with just major segment i.e
v1
will be released from now on.
- Old release that supported downloading images from same workflow.
This library is under the MIT license.