Skip to content

Commit ba5e6fe

Browse files
committed
ci(publish): push a commit-sha tag on supervisor builds from main
Matches the webapp publish, which already pushes an immutable full-sha tag next to the mutable main tag so a build can be pinned by commit.
1 parent 11436a3 commit ba5e6fe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/publish-worker-v4.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ jobs:
9292
image_tags=$image_tags,$ref_without_tag:v4,$ref_without_tag:latest
9393
fi
9494
95+
# when pushing the mutable main tag, also push an immutable-by-convention
96+
# full-commit-sha tag so a commit can be resolved to a specific digest
97+
if [[ "${STEPS_GET_TAG_OUTPUTS_TAG}" == "main" ]]; then
98+
image_tags=$image_tags,$ref_without_tag:${GITHUB_SHA}
99+
fi
100+
95101
echo "image_tags=${image_tags}" >> "$GITHUB_OUTPUT"
96102
echo "image_repo=${ref_without_tag}" >> "$GITHUB_OUTPUT"
97103
env:

0 commit comments

Comments
 (0)