From 57c16551d0f0f723a7504061c0b7e9f9aa23eac9 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, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 38d8c73..f89eb59 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -112,6 +112,7 @@ jobs: with: context: . platforms: linux/${{ matrix.platform }} + target: ${{ inputs.docker_target }} labels: ${{ steps.meta.outputs.labels }} outputs: type=image,name=${{ inputs.registry }},push-by-digest=true,name-canonical=true,push=true build-args: | @@ -120,18 +121,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: @@ -145,7 +148,7 @@ jobs: uses: actions/download-artifact@v4 with: path: /tmp/digests - pattern: digests-* + pattern: digests-${{ inputs.docker_target }}-* merge-multiple: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3