From 8b52c8f17ffebfcae3d46154042d99af182557a2 Mon Sep 17 00:00:00 2001 From: Antheas Kapenekakis <5252246+antheas@users.noreply.github.com> Date: Thu, 31 Oct 2024 21:16:00 +0100 Subject: [PATCH] fix: move digest to its own step (#1836) --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3cb5f328b4..8271da4983 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -393,9 +393,13 @@ jobs: sudo skopeo copy ${{ steps.rechunk.outputs.ref }} docker://${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}:$tag done - # Get digest for signing - DIGEST=$(sudo skopeo inspect --format '{{.Digest}}' ${{ steps.rechunk.outputs.ref }}) - echo "digest=${DIGEST}" >> $GITHUB_OUTPUT + - name: Get Image Digest + id: digest + run: | + # Get digest for signing + DIGEST=$(sudo skopeo inspect --format '{{.Digest}}' ${{ steps.rechunk.outputs.ref }}) + echo "Digest is: $DIGEST" + echo "digest=${DIGEST}" >> $GITHUB_OUTPUT - name: Sign container image uses: EyeCantCU/cosign-action/sign@v0.3.0 @@ -404,7 +408,7 @@ jobs: containers: ${{ env.IMAGE_NAME }} registry-token: ${{ secrets.GITHUB_TOKEN }} signing-secret: ${{ secrets.SIGNING_SECRET }} - tags: ${{ steps.push.outputs.digest }} + tags: ${{ steps.digest.outputs.digest }} generate_release: name: Generate Release