-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: INFENG-937: Publish Helm chart release candidates (#10141)
INFENG-937: Publish Helm RCs Add Helm makefile and CircleCI job to publish Helm chart release candidates. This is necessary to properly deploy release candidates onto the new release party cluster. Previously, bumpversion adjusted the chart version in Chart.yaml and committed that to the release branch, then rph used this in-tree version as a chart repository to do GKE cluster upgrades during testing. This is no longer possible, though, so we need to publish these release candidate versions. (We should probably be doing this anyway, in the interest of transparency.) This will create an additional GitHub release every time we cut a release candidate.
- Loading branch information
1 parent
24ea8dc
commit 3defb49
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,18 @@ release-gh: | |
git clean -df | ||
goreleaser --rm-dist | ||
|
||
.PHONY: release-gh-rc | ||
release-gh-rc: export GORELEASER_CURRENT_TAG := $(VERSION_TAG) | ||
# The following line lists all tags by creation date, finds the current tag and | ||
# the next line after, then prints that second line, which should be the most | ||
# recent previous tag. This works if the previous tag is both a minor release, | ||
# or an rc release. | ||
release-gh-rc: export GORELEASER_PREVIOUS_TAG := $(shell git tag --sort=-creatordate | grep "$(VERSION_TAG)" -A1 | sed -n '2 p') | ||
release-gh-rc: | ||
go install github.com/goreleaser/[email protected] | ||
git clean -df | ||
goreleaser --rm-dist | ||
|
||
.PHONY: release-gh-dryrun | ||
release-gh-dryrun: export GORELEASER_CURRENT_TAG := $(VERSION_TAG) | ||
release-gh-dryrun: export GORELEASER_PREVIOUS_TAG := $(shell git tag --sort=-creatordate | grep -E '^[0-9.]+$$' | grep "$(VERSION_TAG)" -A1 | sed -n '2 p') | ||
|