From e72521c9f5fe6085c83601bab046b64e48838612 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 27 Jan 2022 06:21:43 -0800 Subject: [PATCH] Add `add-tag` & `push-tag` targets to Makefile (#66) * adding `add-tag` & `push-tag` targets to Makefile This allows the release process to remain consistent with the collector/contrib repos. * add newline --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 4238b0c5..3c15da31 100644 --- a/Makefile +++ b/Makefile @@ -63,3 +63,15 @@ goreleaser: exit 1; \ fi \ } + +.PHONY: add-tag +add-tag: + @[ "${TAG}" ] || ( echo ">> env var TAG is not set"; exit 1 ) + @echo "Adding tag ${TAG}" + @git tag -a ${TAG} -s -m "Version ${TAG}" + +.PHONY: push-tag +push-tag: + @[ "${TAG}" ] || ( echo ">> env var TAG is not set"; exit 1 ) + @echo "Pushing tag ${TAG}" + @git push upstream ${TAG}