forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace manually adding tags with multimod (open-telemetry#6292)
Signed-off-by: Bogdan <[email protected]> Signed-off-by: Bogdan <[email protected]>
- Loading branch information
1 parent
3d6a19c
commit f5e033c
Showing
2 changed files
with
13 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,35 +165,16 @@ ifndef COMPONENT | |
$(error COMPONENT variable was not defined) | ||
endif | ||
|
||
.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}" | ||
@set -e; for dir in $(ALL_MODULES); do \ | ||
(echo Adding tag "$${dir:2}/$${TAG}" && \ | ||
git tag -a "$${dir:2}/$${TAG}" -s -m "Version ${dir:2}/${TAG}" ); \ | ||
done | ||
|
||
.PHONY: push-tag | ||
push-tag: | ||
@[ "${TAG}" ] || ( echo ">> env var TAG is not set"; exit 1 ) | ||
@echo "Pushing tag ${TAG}" | ||
@git push [email protected]:open-telemetry/opentelemetry-collector.git ${TAG} | ||
@set -e; for dir in $(ALL_MODULES); do \ | ||
(echo Pushing tag "$${dir:2}/$${TAG}" && \ | ||
git push [email protected]:open-telemetry/opentelemetry-collector.git "$${dir:2}/$${TAG}"); \ | ||
done | ||
|
||
.PHONY: delete-tag | ||
delete-tag: | ||
@[ "${TAG}" ] || ( echo ">> env var TAG is not set"; exit 1 ) | ||
@echo "Deleting tag ${TAG}" | ||
@git tag -d ${TAG} | ||
@set -e; for dir in $(ALL_MODULES); do \ | ||
(echo Deleting tag "$${dir:2}/$${TAG}" && \ | ||
git tag -d "$${dir:2}/$${TAG}" ); \ | ||
done | ||
COMMIT?=HEAD | ||
MODSET?=stable | ||
REMOTE?[email protected]:open-telemetry/opentelemetry-collector.git | ||
.PHONY: push-tags | ||
push-tags: | ||
multimod verify | ||
set -e; for tag in `multimod tag -m ${MODSET} -c ${COMMIT} --print-tags | grep -v "Using" `; do \ | ||
echo "pushing tag $${tag}"; \ | ||
git push ${REMOTE} $${tag}; \ | ||
done; | ||
|
||
# Build the Collector executable. | ||
.PHONY: otelcorecol | ||
|
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