build: validate the release version before tagging and publishing
Nothing verified that the commit being tagged for a release actually
carries the intended version. Tagging a release branch before the version
update PR is merged publishes images and manifests that reference the
previous release. Add build/release/validate-tag.sh to check that the tree
is clean and that deploy/examples/images.txt and the helm chart values
match the tag, run it from the release build workflow before any artifact
is published, and document it in the tagging steps. Alpha tags are exempt
as they only mark the creation of a release branch.
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit adda6b17d3)
# Conflicts:
# .github/workflows/push-build.yaml
This commit is contained in:
1 parent
623b6b2dec
commit
f070e0405a
3 files changed
+62
No files matched your search
@@ -27,6 +27,12 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: validate release version
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
env:
|
||||
TAG_NAME: ${{ github.ref_name }}
|
||||
run: build/release/validate-tag.sh "$TAG_NAME"
|
||||
|
||||
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
||||
with:
|
||||
go-version: "1.25"
|
||||
|
||||
Reference in new issue
Block a user