File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ 2.0.0-ea
Original file line number Diff line number Diff 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+
98110release/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
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ abort() {
1616}
1717
1818TOP_DIR=${CURR_DIR} /../
19+ if [[ -z " ${VERSION} " ]] ; then
20+ VERSION=` cat ${TOP_DIR} /VERSION`
21+ fi
1922if [[ -z " ${VERSION} " ]] ; then
2023 abort " VERSION must be set"
2124fi
You can’t perform that action at this time.
0 commit comments