Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ jobs:
--tag "$candidate" \
"${references[@]}"

manifest_digest="$(docker buildx imagetools inspect "$candidate" | awk '/^Digest:/{print $2; exit}')"
manifest_digest="$(docker buildx imagetools inspect --format '{{.Manifest.Digest}}' "$candidate")"
if [[ ! "$manifest_digest" =~ ^sha256:[[:xdigit:]]{64}$ ]]; then
echo 'The registry did not return a valid multiarchitecture image digest.' >&2
exit 1
Expand Down Expand Up @@ -590,7 +590,7 @@ jobs:
--tag "$IMAGE:latest" \
"$IMAGE@$MANIFEST_DIGEST"

actual_digest="$(docker buildx imagetools inspect "$IMAGE:$VERSION" | awk '/^Digest:/{print $2; exit}')"
actual_digest="$(docker buildx imagetools inspect --format '{{.Manifest.Digest}}' "$IMAGE:$VERSION")"
if [[ "$actual_digest" != "$MANIFEST_DIGEST" ]]; then
echo '::error::The promoted stable tag does not reference the verified and attested candidate digest.'
exit 1
Expand Down
Loading