From cffae60d339d979f17520d043d1a8455db0eae1a Mon Sep 17 00:00:00 2001 From: Sebastian Webber Date: Thu, 31 Oct 2024 14:24:34 -0300 Subject: [PATCH] troubleshooting Signed-off-by: Sebastian Webber --- .github/workflows/build.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 38d8c73..0db9447 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -120,18 +120,20 @@ jobs: BPF_TARGET=${{ matrix.platform }} - name: Export digest run: | - mkdir -p /tmp/digests rm -rf /tmp/digests/* + mkdir -p /tmp/digests digest="${{ steps.build.outputs.digest }}" - touch "/tmp/digests/${digest#sha256:}" + export "IMAGE_DIGEST=${digest#sha256:}" + echo "IMAGE_DIGEST=${IMAGE_DIGEST}" >> $GITHUB_ENV + touch "/tmp/digests/${IMAGE_DIGEST}" + - name: Upload digest uses: actions/upload-artifact@v4 with: - name: digests-${{ env.PLATFORM_DASH_PAIR }}-${{ inputs.docker_target }}-${{ inputs.tags }} + name: digests-${{ inputs.docker_target }}-${{ env.IMAGE_DIGEST }} path: /tmp/digests/* if-no-files-found: error retention-days: 1 - overwrite: true merge: runs-on: ${{ inputs.runner }} needs: @@ -167,6 +169,9 @@ jobs: - name: Create manifest list and push working-directory: /tmp/digests run: | + set -eux + ls /tmp/digests -l + cat /tmp/digests/* docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ $(printf '${{ inputs.registry }}@sha256:%s ' *) - name: Inspect image