File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
RELEASE_BRANCH=" ${CURRENT_BRANCH} "
23
23
24
+ REMOTE=${1:- origin}
25
+ REMOTE_URL=$( git remote get-url ${REMOTE} )
26
+
27
+ if [[ ! $( git ls-remote --exit-code ${REMOTE_URL} ${RELEASE_BRANCH} ) ]]; then
28
+ echo " !! Please make sure '${RELEASE_BRANCH} ' exists in remote '${REMOTE} '" >&2
29
+ exit 1
30
+ fi
31
+
24
32
# ## look for latest on-branch tag
25
33
PREVIOUS_TAG=$( git describe --tags --abbrev=0 --match " *${RELEASE_BRANCH## release-} *" 2> /dev/null || true)
26
34
31
39
fi
32
40
33
41
echo $NEW_VERSION > VERSION
34
-
35
42
IMAGE_TAG=" v${NEW_VERSION} "
36
43
make manifests
37
44
38
- REMOTE=${1:- origin}
39
- REMOTE_URL=$( git remote get-url ${REMOTE} )
40
-
41
45
git checkout -b " feat/new-version-${NEW_VERSION} "
42
46
git commit -m " Release ${NEW_VERSION} " VERSION manifests/
43
47
git push --set-upstream ${REMOTE} " feat/new-version-${NEW_VERSION} "
You can’t perform that action at this time.
0 commit comments