Skip to content

Commit eaf1afa

Browse files
committed
Enhance GitHub Actions workflows for image reference clarity
- Updated the `publish-main.yml` and `publish-staging.yml` workflows to include detailed output of published image references, specifying both version and floating tags. - Improved messaging to indicate the source of promoted images from staging, enhancing transparency in the deployment process. - Ensured consistent formatting for image references across both workflows, aiding in better documentation and usability.
1 parent 5df74a1 commit eaf1afa

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/publish-main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,23 @@ jobs:
128128
if: success()
129129
env:
130130
BASE: ${{ steps.version.outputs.base_version }}
131+
STAGING_N: ${{ steps.promote.outputs.staging_n }}
132+
REPO: ${{ github.repository }}
131133
run: |
132134
{
133135
echo "## Production images (promoted from staging line)"
134136
echo ""
137+
echo "Promoted from: \`$BASE-staging.$STAGING_N\` (per-image source in GHCR)."
138+
echo ""
135139
echo "| Image | Tags |"
136140
echo "|-------|------|"
137141
for a in api management-api web web-sidecar management-web management-web-sidecar; do
138-
echo "| \`ghcr.io/${{ github.repository }}/${a}\` | \`$BASE\`, \`prod\` |"
142+
echo "| \`ghcr.io/${REPO}/${a}\` | \`$BASE\`, \`prod\` |"
143+
done
144+
echo ""
145+
echo "## All published image references"
146+
for a in api management-api web web-sidecar management-web management-web-sidecar; do
147+
echo "- \`ghcr.io/${REPO}/${a}:${BASE}\` (immutable)"
148+
echo "- \`ghcr.io/${REPO}/${a}:prod\` (floating)"
139149
done
140150
} >> "$GITHUB_STEP_SUMMARY"

.github/workflows/publish-staging.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,12 @@ jobs:
260260
done
261261
echo ""
262262
echo "Pin GitOps to the version tag or the floating tag. Git tag matches the semver when created."
263+
echo ""
264+
echo "## All published image references"
265+
for app in api management-api web web-sidecar management-web management-web-sidecar; do
266+
echo "- \`ghcr.io/${REPO}/${app}:${VERSION}\` (version tag)"
267+
echo "- \`ghcr.io/${REPO}/${app}:${FT}\` (floating tag)"
268+
done
263269
} >> "$GITHUB_STEP_SUMMARY"
264270
265271
github-prerelease-create:

0 commit comments

Comments
 (0)