-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move digest to its own step (#1836)
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|