From 0d20b2f019cf60662146ca422a23e08efb92fe4f Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 7 Apr 2020 23:47:40 +0200 Subject: [PATCH] updated ci-build.sh --- ci-build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci-build.sh b/ci-build.sh index 727516e..cd44107 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -1,11 +1,15 @@ #!/bin/bash +echo $DRONE_TAG +echo $GOOS +echo $GOARCH + if [[ ! -z $DRONE_TAG && ! -z $GOOS && ! -z $GOARCH ]] then mkdir dist go build -o dist/qrz-${DRONE_TAG}-${GOOS}-${GOARCH} -mod=vendor -ldflags='-s -w' cmd/qrz/*.go cd dist - tar -czvf qrz-${DRONE_TAG}-${GOOS}-${GOARCH}.tar.gz + tar -czvf qrz-${DRONE_TAG}-${GOOS}-${GOARCH}.tar.gz qrz-${DRONE_TAG}-${GOOS}-${GOARCH} else echo "Required variables not set" fi