Skip to content

Commit 5bb6dcd

Browse files
authored
feat(ci): print staging and production digest to summary (#2388)
May help us when spotting [1]. [1]: #2377
1 parent 82105df commit 5bb6dcd

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/reusable-build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ jobs:
361361
digest=$(< /tmp/digestfile)
362362
echo "digest=${digest}" >> $GITHUB_OUTPUT
363363
364+
echo '## Temporary digest'>> "$GITHUB_STEP_SUMMARY"
365+
echo '```' >> "$GITHUB_STEP_SUMMARY"
366+
echo "${digest}" >> "$GITHUB_STEP_SUMMARY"
367+
echo '```' >> "$GITHUB_STEP_SUMMARY"
368+
364369
- name: Sign container image
365370
if: inputs.publish
366371
env:
@@ -391,6 +396,14 @@ jobs:
391396
"1" \
392397
"${IMAGE_REGISTRY}"
393398
399+
digest=$(< /tmp/digestfile)
400+
echo "digest=${digest}" >> $GITHUB_OUTPUT
401+
402+
echo '## Production digest'>> "$GITHUB_STEP_SUMMARY"
403+
echo '```' >> "$GITHUB_STEP_SUMMARY"
404+
echo "${digest}" >> "$GITHUB_STEP_SUMMARY"
405+
echo '```' >> "$GITHUB_STEP_SUMMARY"
406+
394407
- name: Login to GitHub Container Registry with ORAS
395408
if: inputs.publish
396409
env:

Justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ push-image $image="aurora" $tag="latest" $flavor="main" $ghcr="0" $image_registr
825825
${PUSH_CMD} ${image_name}:${tag} ${image_registry}/${image_name}:${tag}
826826
# We need to push twice to workaround https://github.com/containers/podman/issues/27796
827827
${PUSH_CMD} ${image_name}:${tag} ${image_registry}/${image_name}:${tag}
828+
cat /tmp/digestfile
828829
done
829830

830831
elif [[ "${temp_push}" == "1" ]]; then

0 commit comments

Comments
 (0)