Skip to content

Commit a3a5bfd

Browse files
committed
update script to build the latest tag
1 parent 3a28427 commit a3a5bfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ cd $BUILD_DIR
77
sum="sha1sum"
88

99
export GO111MODULE=on
10-
echo "BUILDING SAFEBOX"
10+
VERSION=`git describe --tags --abbrev=0`
11+
echo "BUILDING SAFEBOX $VERSION"
1112
echo "Setting GO111MODULE to" $GO111MODULE
1213

1314
if ! hash sha1sum 2>/dev/null; then
@@ -24,7 +25,6 @@ if hash upx 2>/dev/null; then
2425
UPX=true
2526
fi
2627

27-
VERSION="1.0.4"
2828
LDFLAGS="-X main.VERSION=$VERSION -s -w"
2929
GCFLAGS=""
3030

0 commit comments

Comments
 (0)