diff options
author | Adin Scannell <ascannell@google.com> | 2020-06-01 10:27:59 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-01 10:31:26 -0700 |
commit | 2c6c4365ea3ad23166353aa03643fc009669ee93 (patch) | |
tree | bc61145687b2cda407014b990ba229e12b1746e7 /Makefile | |
parent | 839208f118793c665f48a057d1f35d74979b7916 (diff) |
Move to make for tag release workflow.
This will make tag & release workflows idempotent.
PiperOrigin-RevId: 314154888
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -158,10 +158,16 @@ website-deploy: website-push ## Deploy a new version of the website. ## RELEASE_ROOT - The repository root (default: "repo" directory). ## RELEASE_KEY - The repository GPG private key file (default: dummy key is created). ## RELEASE_NIGHTLY - Set to true if a nightly release (default: false). +## RELEASE_COMMIT - The commit or Change-Id for the release (needed for tag). +## RELEASE_NAME - The name of the release in the proper format (needed for tag). +## RELEASE_NOTES - The file containing release notes (needed for tag). ## RELEASE_ROOT := $(CURDIR)/repo RELEASE_KEY := repo.key RELEASE_NIGHTLY := false +RELEASE_COMMIT := +RELEASE_NAME := +RELEASE_NOTES := $(RELEASE_KEY): @echo "WARNING: Generating a key for testing ($@); don't use this." @@ -179,6 +185,10 @@ release: $(RELEASE_KEY) ## Builds a release. rc=$$?; rm -rf $$T; exit $$rc .PHONY: release +tag: ## Creates and pushes a release tag. + @tools/tag_release.sh "$(RELEASE_COMMIT)" "$(RELEASE_NAME)" "$(RELEASE_NOTES)" +.PHONY: tag + ## ## Development helpers and tooling. ## |