File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,19 @@ if [[ ! ($VERSION =~ $VERSION_REGEX) ]]; then
22
22
exit 1
23
23
fi
24
24
25
- VERSION_NO_V=$( echo $VERSION | sed ' s/$ v//g' )
25
+ VERSION_NO_V=$( echo $VERSION | sed ' s/^ v//g' )
26
26
27
27
echo VERSION=$VERSION
28
28
echo VERSION_NO_V=$VERSION_NO_V
29
29
30
+ make manifests
31
+ if [ ! -z " $( git status --porcelain) " ]; then
32
+ echo " make manifests changes manifests even though we did not touch the version yet!"
33
+ exit 1
34
+ fi
35
+
36
+ # ## A few seds/yqs to update versions
37
+
30
38
cat docs/install.md | sed " s/ref=$VERSION_REGEX_SED /ref=$VERSION /g" > docs/install.md.tmp
31
39
mv docs/install.md.tmp docs/install.md
32
40
@@ -44,12 +52,27 @@ for f in $SED_FILES; do
44
52
mv $f .tmp $f
45
53
done
46
54
55
+ echo " Updating manifests and docs"
56
+ make manifests
57
+ make helm-docs
58
+
59
+ ADD_FILES=" $ADD_FILES deploy/manifests/template-controller.yaml"
60
+ ADD_FILES=" $ADD_FILES deploy/charts/template-controller/README.md"
61
+
62
+ echo " Adding files to index: $ADD_FILES "
47
63
for f in $ADD_FILES ; do
48
64
git add $f
49
65
done
50
66
51
- echo " committing "
67
+ echo " Committing "
52
68
git commit -o -m " build: Preparing release $VERSION " -- $ADD_FILES
53
69
54
- echo " tagging"
70
+ # Check if working tree got clean after commiting all know changed files. If you see this failing, you might need to
71
+ # update the ADD_FILES
72
+ if [ ! -z " $( git status --porcelain) " ]; then
73
+ echo " make manifests changes manifests even though we did not touch the version yet!"
74
+ exit 1
75
+ fi
76
+
77
+ echo " Tagging"
55
78
git tag -f $VERSION
You can’t perform that action at this time.
0 commit comments