We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0b423 commit 1a1bfacCopy full SHA for 1a1bfac
1 file changed
scripts/change-version-to
@@ -1,5 +1,12 @@
1
#!/bin/bash
2
3
+switch_to_branch() {
4
+ local BRANCH=$1
5
+
6
+ git checkout -b $BRANCH
7
+ git pull origin $BRANCH
8
+}
9
10
replace_files_with() {
11
local VERSION=$1
12
@@ -28,7 +35,7 @@ on_success() {
28
35
fi
29
36
30
37
echo "Committing files"
31
- git add Dockerfile README.txt
38
+ git add Dockerfile README.md
32
39
git commit -m "$COMMIT_MSG"
33
40
git tag -a $VERSION -m "version $VERSION"
34
41
@@ -60,6 +67,13 @@ if [ $# -eq 0 ]
60
67
61
68
62
69
VERSION=$1
70
71
+if [[ $VERSION == 1.3.* ]]; then
72
+ switch_to_branch "1.3.x"
73
+else
74
+ switch_to_branch "master"
75
+fi
76
63
77
replace_files_with $VERSION
64
78
build_docker $VERSION
65
79
DOCKER_BUILD_RESULT=$?
@@ -70,4 +84,4 @@ else
84
on_error
85
86
-
87
+switch_to_branch "master"
0 commit comments