diff --git a/ci-build.sh b/ci-build.sh index cd44107..3ca0e4a 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -1,8 +1,12 @@ #!/bin/bash -echo $DRONE_TAG -echo $GOOS -echo $GOARCH +VERSION="" + +if [[ ! -z $DRONE_TAG ]] + VERSION=$DRONE_TAG +elif + VERSION=$DRONE_COMMIT +else if [[ ! -z $DRONE_TAG && ! -z $GOOS && ! -z $GOARCH ]] then