Update release.sh

This commit is contained in:
Guox 2019-07-12 17:37:19 +08:00 committed by GitHub
parent 41010cdb77
commit b4d9cbb232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,15 +12,18 @@ fi
GO_VERSION=1.11
GATEWAY_GO_VERSION=1.11-alpine3.8
if [ -z "$TRAVIS_TAG" ]; then
if [ -z "$VERSION" ];then
if [ -z "$TRAVIS_TAG" ]; then
if [ -z "$TRAVIS_BRANCH" ]; then
VERSION=V5.1-dev
else
VERSION=$TRAVIS_BRANCH-dev
fi
else
VERSION=$TRAVIS_TAG
VERSION=V5.1-dev
else
VERSION=$TRAVIS_BRANCH-dev
fi
else
VERSION=$TRAVIS_TAG
fi
fi
buildTime=$(date +%F-%H)
git_commit=$(git log -n 1 --pretty --format=%h)