Support semantic version tags (#1416)
This commit is contained in:
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user