Skip to content

Commit

Permalink
Update artifact paths
Browse files Browse the repository at this point in the history
Signed-off-by: Webster Mudge <[email protected]>
  • Loading branch information
wmudge committed Aug 29, 2023
1 parent 8759867 commit 013ac42
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/validate_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,20 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.PROFILE }}-Containerfile
path: ${{ inputs.PROFILE }}/Containerfile
path: ./Containerfile

- name: Download the base image
if: ${{ inputs.PROFILE != 'base' }}
uses: actions/download-artifact@v3
with:
name: base-${{ steps.sha.outputs.sha-short }}
path: base-${{ steps.sha.outputs.sha-short }}
path: /tmp

- name: Load the base image
if: ${{ inputs.PROFILE != 'base' }}
run: |
podman load -i base-${{ steps.sha.outputs.sha-short }}
podman load -i /tmp/base-${{ steps.sha.outputs.sha-short }}.tar
podman image ls -a
- name: Build image from builder context
uses: redhat-actions/buildah-build@v2
Expand All @@ -93,11 +94,11 @@ jobs:
env:
BASE_IMAGE: base-${{ steps.sha.outputs.sha-short }}
run: |
podman save --output ${{ env.BASE_IMAGE }} ${{ github.repository }}:${{ env.BASE_IMAGE }}
podman save --output /tmp/${{ env.BASE_IMAGE }}.tar ${{ github.repository }}:${{ env.BASE_IMAGE }}
- name: Upload base image
if: ${{ inputs.PROFILE == 'base' }}
uses: actions/upload-artifact@v3
with:
name: base-${{ steps.sha.outputs.sha-short }}
path: base-${{ steps.sha.outputs.sha-short }}
path: /tmp/base-${{ steps.sha.outputs.sha-short }}.tar

0 comments on commit 013ac42

Please sign in to comment.