From d511441c7e06bc2e97202231bdfe41b754e7171f Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 8 Apr 2020 00:13:49 +0200 Subject: [PATCH] updated .drone.yml --- ci-build.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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