feat(ci): print staging and production digest to summary (#2388)

May help us when spotting [1].

[1]: https://github.com/ublue-os/aurora/issues/2377
This commit is contained in:
renner 2026-06-14 02:11:47 +02:00 committed by GitHub
parent 82105df092
commit 5bb6dcd7b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -361,6 +361,11 @@ jobs:
digest=$(< /tmp/digestfile)
echo "digest=${digest}" >> $GITHUB_OUTPUT
echo '## Temporary digest'>> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
echo "${digest}" >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
- name: Sign container image
if: inputs.publish
env:
@ -391,6 +396,14 @@ jobs:
"1" \
"${IMAGE_REGISTRY}"
digest=$(< /tmp/digestfile)
echo "digest=${digest}" >> $GITHUB_OUTPUT
echo '## Production digest'>> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
echo "${digest}" >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
- name: Login to GitHub Container Registry with ORAS
if: inputs.publish
env:

View file

@ -825,6 +825,7 @@ push-image $image="aurora" $tag="latest" $flavor="main" $ghcr="0" $image_registr
${PUSH_CMD} ${image_name}:${tag} ${image_registry}/${image_name}:${tag}
# We need to push twice to workaround https://github.com/containers/podman/issues/27796
${PUSH_CMD} ${image_name}:${tag} ${image_registry}/${image_name}:${tag}
cat /tmp/digestfile
done
elif [[ "${temp_push}" == "1" ]]; then