Skip to content

Commit

Permalink
Replace unsupported --output flag with podman save command
Browse files Browse the repository at this point in the history
Signed-off-by: Webster Mudge <[email protected]>
  • Loading branch information
wmudge committed Aug 25, 2023
1 parent 9dbd436 commit d739949
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/validate_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,17 @@ jobs:
BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
image: ${{ github.repository }}
tags: ${{ steps.meta.outputs.tags }}
extra-args: |
--output type=tar,dest=${{ inputs.PROFILE }}-${{ steps.sha.outputs.sha-short }}

- name: Save the base image
if: ${{ inputs.PROFILE == 'base' }}
env:
BASE_IMAGE: base-${{ steps.sha.outputs.sha-short }}
run: |
podman save --output ${{ env.BASE_IMAGE }} ${{ github.repository }}:${{ env.BASE_IMAGE }}
- name: Upload base image
if: ${{ inputs.PROFILE == 'base' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.PROFILE }}-${{ steps.sha.outputs.sha-short }}
path: ${{ inputs.PROFILE }}-${{ steps.sha.outputs.sha-short }}
name: base-${{ steps.sha.outputs.sha-short }}
path: base-${{ steps.sha.outputs.sha-short }}

0 comments on commit d739949

Please sign in to comment.