drone fetch tags...

This commit is contained in:
Dan Ballard 2019-03-29 13:01:43 -07:00
parent f425e3ee32
commit 8a8cd9f804
1 changed files with 2 additions and 1 deletions

View File

@ -20,9 +20,10 @@ pipeline:
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git openssh-client
- go get -d
- $QT_DIR/5.12.0/gcc_64/bin/lrelease ui.pro
- git fetch --tags
- export VERSION=`git describe --tags`
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
- qtdeploy -ldflags "-X main.buildVer=$VERSION main.buildDate=$BUILDDATE" build linux
- qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build linux
- export FILENAME=cwtch-linux-$BUILDDATE.tar.gz
- cd deploy
- mv linux cwtch