Support semantic version tags (#1416)

This commit is contained in:
Ta-Ching Chen
2019-11-18 15:54:43 +08:00
committed by GitHub
parent 3aca0edfcc
commit 8b0d99d65d
2 changed files with 15 additions and 12 deletions
+6 -6
View File
@@ -12,9 +12,9 @@ BUILDDIR=$(realpath $DIR)/build
check_branch() {
local version=$1
curr_branch=$(git rev-parse --abbrev-ref HEAD)
if [ $curr_branch != "v${version}" ]
if [ $curr_branch != "release-${version}" ]
then
echo "Not on v${version} branch."
echo "Not on release-${version} branch."
exit 1
fi
}
@@ -150,7 +150,7 @@ push_all() {
tag_and_release() {
local version=$1
local gittag=$version
local gittag="v${version}"
# tag the release
git tag $gittag
@@ -170,7 +170,7 @@ tag_and_release() {
attach_github_release_cli() {
local version=$1
local gittag=$version
local gittag="v${version}"
# cli
echo "Uploading osx cli"
gothub upload \
@@ -202,7 +202,7 @@ attach_github_release_cli() {
attach_github_release_charts() {
local version=$1
local gittag=$version
local gittag="v${version}"
# helm charts
gothub upload \
@@ -225,7 +225,7 @@ attach_github_release_charts() {
attach_github_release_yamls() {
local version=$1
local gittag=$version
local gittag="v${version}"
for c in fission-all fission-core
do