From d7399499081709ed98d28d08973e8bc0b1348af2 Mon Sep 17 00:00:00 2001 From: Webster Mudge Date: Fri, 25 Aug 2023 12:41:58 -0400 Subject: [PATCH] Replace unsupported --output flag with podman save command Signed-off-by: Webster Mudge --- .github/workflows/validate_image.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate_image.yml b/.github/workflows/validate_image.yml index 71956a8..a34fbc2 100644 --- a/.github/workflows/validate_image.yml +++ b/.github/workflows/validate_image.yml @@ -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 }}