Skip to content

Commit

Permalink
fix: move digest to its own step (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas authored Oct 31, 2024
1 parent ebb880e commit 8b52c8f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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
Expand Down

0 comments on commit 8b52c8f

Please sign in to comment.