Skip to content

Commit 93a5896

Browse files
committed
promote sif to latest on development and latest-pw on development-pw
1 parent 13df075 commit 93a5896

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,18 @@ jobs:
432432
# oras:// (not docker://). The in-VPC staging step pulls this onto EFS.
433433
apptainer push nwm-fcst-mgr.sif "oras://${SIF_REPO}:${ALIAS_TAG}"
434434
echo "Published oras://${SIF_REPO}:${ALIAS_TAG}"
435+
436+
# Branch-keyed SIF promotion, mirroring the image promotion above:
437+
# development also publishes ':latest', development-pw ':latest-pw'.
438+
# The registry already holds the SIF blob from the push above, so this
439+
# re-push uploads only the manifest and tag, not the multi-GB SIF. Do
440+
# not manually dispatch a cross-lane build from either branch:
441+
# promotion keys off the branch name, so the SIF would promote under
442+
# the wrong alias.
443+
if [ "$GITHUB_REF_NAME" = "development" ]; then
444+
apptainer push nwm-fcst-mgr.sif "oras://${SIF_REPO}:latest"
445+
echo "Promoted oras://${SIF_REPO}:latest"
446+
elif [ "$GITHUB_REF_NAME" = "development-pw" ]; then
447+
apptainer push nwm-fcst-mgr.sif "oras://${SIF_REPO}:latest-pw"
448+
echo "Promoted oras://${SIF_REPO}:latest-pw"
449+
fi

0 commit comments

Comments
 (0)