-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#8082: add github action to load docker image artifact
- Loading branch information
Showing
2 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Load Docker Image" | ||
description: "Downloads and loads Docker image artifact" | ||
inputs: | ||
artifact-name: | ||
description: 'The name of the Docker image artifact to download.' | ||
required: true | ||
default: 'docker_image.tar.gz' | ||
path: | ||
description: 'The path where the Docker image artifact will be downloaded.' | ||
required: true | ||
default: '/tmp' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download Docker image | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ${{ inputs.artifact-name }} | ||
path: ${{ inputs.path }} | ||
|
||
- name: Load Docker image | ||
run: | | ||
gunzip -c ${{ inputs.path }}/${{ inputs.artifact-name }} | docker load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters