Skip to content

Commit

Permalink
fix(action-aws): pull docker and load docker debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JoffreyPlouvier committed May 10, 2023
1 parent 66a3bcb commit 819df38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions actions/aws/promote-docker-artifact-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
id: dl-artifact
with:
name: ${{ inputs.artifact_name }}
path: path/to/docker/artifact
path: path/to/artifact

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -51,8 +51,6 @@ runs:
id: docker-load
shell: bash
run: |
echo ${{steps.dl-artifact.outputs.download-path}}
ls ${{steps.dl-artifact.outputs.download-path}}
docker load --input ${{steps.dl-artifact.outputs.download-path}}/${{ inputs.artifact_file_name }}
- name: Configure AWS Credentials
Expand Down
9 changes: 7 additions & 2 deletions actions/aws/pull-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ outputs:
value: ${{ inputs.artifact_name }}
artifact_file_name:
description: "Image artifact filename"
value: ${{ inputs.artifact_name }}.txt
value: ${{ inputs.artifact_name }}.tar

runs:
using: "composite"
Expand Down Expand Up @@ -57,6 +57,11 @@ runs:
run: |
docker pull ${{ steps.docker-uri.outputs.image-uri }}
- name: Save Docker image as TAR
shell: bash
run: |
docker save --output tmp/docker/${{ inputs.artifact_name }}.tar ${{ steps.docker-uri.outputs.image-uri }}
- name: Save ImageURI as artifact_name.txt
env:
IMAGE_URI: ${{ steps.docker-uri.outputs.image-uri }}
Expand All @@ -68,4 +73,4 @@ runs:
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: ${{ inputs.artifact_name }}.txt
path: tmp/docker/${{ inputs.artifact_name }}.tar

0 comments on commit 819df38

Please sign in to comment.