Skip to content

Commit

Permalink
Add add-tag & push-tag targets to Makefile (open-telemetry#66)
Browse files Browse the repository at this point in the history
* adding `add-tag` & `push-tag` targets to Makefile

This allows the release process to remain consistent with the collector/contrib repos.

* add newline
  • Loading branch information
Alex Boten authored Jan 27, 2022
1 parent a10d8eb commit e72521c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit e72521c

Please sign in to comment.