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:
parent
82105df092
commit
5bb6dcd7b6
2 changed files with 14 additions and 0 deletions
13
.github/workflows/reusable-build.yml
vendored
13
.github/workflows/reusable-build.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
1
Justfile
1
Justfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue