release script: replace existing binaries
This commit is contained in:
+7
-2
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
#set -x
|
||||||
|
|
||||||
DIR=$(realpath $(dirname $0))/../
|
DIR=$(realpath $(dirname $0))/../
|
||||||
BUILDDIR=$(realpath $DIR)/build
|
BUILDDIR=$(realpath $DIR)/build
|
||||||
@@ -183,12 +183,13 @@ tag_and_release() {
|
|||||||
--pre-release
|
--pre-release
|
||||||
}
|
}
|
||||||
|
|
||||||
attach_github_release() {
|
attach_github_release_cli() {
|
||||||
version=$1
|
version=$1
|
||||||
gittag=$version
|
gittag=$version
|
||||||
# cli
|
# cli
|
||||||
echo "Uploading osx cli"
|
echo "Uploading osx cli"
|
||||||
gothub upload \
|
gothub upload \
|
||||||
|
--replace \
|
||||||
--user fission \
|
--user fission \
|
||||||
--repo fission \
|
--repo fission \
|
||||||
--tag $gittag \
|
--tag $gittag \
|
||||||
@@ -197,6 +198,7 @@ attach_github_release() {
|
|||||||
|
|
||||||
echo "Uploading linux cli"
|
echo "Uploading linux cli"
|
||||||
gothub upload \
|
gothub upload \
|
||||||
|
--replace \
|
||||||
--user fission \
|
--user fission \
|
||||||
--repo fission \
|
--repo fission \
|
||||||
--tag $gittag \
|
--tag $gittag \
|
||||||
@@ -205,6 +207,7 @@ attach_github_release() {
|
|||||||
|
|
||||||
echo "Uploading windows cli"
|
echo "Uploading windows cli"
|
||||||
gothub upload \
|
gothub upload \
|
||||||
|
--replace \
|
||||||
--user fission \
|
--user fission \
|
||||||
--repo fission \
|
--repo fission \
|
||||||
--tag $gittag \
|
--tag $gittag \
|
||||||
@@ -218,6 +221,7 @@ attach_github_release_charts() {
|
|||||||
|
|
||||||
# helm charts
|
# helm charts
|
||||||
gothub upload \
|
gothub upload \
|
||||||
|
--replace \
|
||||||
--user fission \
|
--user fission \
|
||||||
--repo fission \
|
--repo fission \
|
||||||
--tag $gittag \
|
--tag $gittag \
|
||||||
@@ -225,6 +229,7 @@ attach_github_release_charts() {
|
|||||||
--file $BUILDDIR/charts/fission-all-$version.tgz
|
--file $BUILDDIR/charts/fission-all-$version.tgz
|
||||||
|
|
||||||
gothub upload \
|
gothub upload \
|
||||||
|
--replace \
|
||||||
--user fission \
|
--user fission \
|
||||||
--repo fission \
|
--repo fission \
|
||||||
--tag $gittag \
|
--tag $gittag \
|
||||||
|
|||||||
Reference in New Issue
Block a user