File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments