Skip to content

Commit 6cd76c9

Browse files
committed
Copy release/chart/tag make target
Signed-off-by: AliceProxy <aliceproxy@protonmail.com>
1 parent 108dbb9 commit 6cd76c9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

charts/charts.mk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ release/chart/changelog:
9595
@$(EDGE_STACK_HOME)/charts/scripts/update_chart_changelog.sh
9696
.PHONY: release/chart/changelog
9797

98+
release/chart/tag:
99+
@set -e; { \
100+
if [ -n "$(IS_DIRTY)" ]; then \
101+
echo "release/chart/tag: tree must be clean" >&2 ;\
102+
exit 1 ;\
103+
fi; \
104+
chart_ver=`grep 'version:' $(CHART_DIR)/Chart.yaml | awk ' { print $$2 }'` ; \
105+
chart_ver=chart-v$${chart_ver} ; \
106+
git tag -m "Tagging $${chart_ver}" -a $${chart_ver} ; \
107+
git push origin $${chart_ver} ; \
108+
}
109+
98110
release/chart/ga-image-update: chart/push-preflight
99111
@[ -n "${IMAGE_TAG}" ] || (echo "IMAGE_TAG must be set" && exit 1)
100112
([[ "${IMAGE_TAG}" =~ .*\.0$$ ]] && $(MAKE) release/chart/bump-minor) || $(MAKE) release/chart/bump-revision

0 commit comments

Comments
 (0)