summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-06-01 10:27:59 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-01 10:31:26 -0700
commit2c6c4365ea3ad23166353aa03643fc009669ee93 (patch)
treebc61145687b2cda407014b990ba229e12b1746e7 /Makefile
parent839208f118793c665f48a057d1f35d74979b7916 (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--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4d66b0904..9d486ef49 100644
--- a/Makefile
+++ b/Makefile
@@ -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.
##