Skip to content

Commit 59497a9

Browse files
authored
Merge pull request #8 from datawire/alicewasko/make-release-tag
Add release/chart/tag make target
2 parents 108dbb9 + ce70ddd commit 59497a9

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.0.0-ea

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

manifests/push_manifests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ abort() {
1616
}
1717

1818
TOP_DIR=${CURR_DIR}/../
19+
if [[ -z "${VERSION}" ]] ; then
20+
VERSION=`cat ${TOP_DIR}/VERSION`
21+
fi
1922
if [[ -z "${VERSION}" ]] ; then
2023
abort "VERSION must be set"
2124
fi

0 commit comments

Comments
 (0)