From f425e3ee32a74a32f2d650d5183c1eaf4d9a832f Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 29 Mar 2019 12:43:48 -0700 Subject: [PATCH] drone builddate and buildver for linux --- .drone.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1a418d84..17ed5fc7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,8 +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 - - qtdeploy build linux - - export FILENAME=cwtch-linux-`date +%G-%m-%d-%H-%M`.tar.gz + - export VERSION=`git describe --tags` + - export BUILDDATE=`date +%G-%m-%d-%H-%M` + - qtdeploy -ldflags "-X main.buildVer=$VERSION main.buildDate=$BUILDDATE" build linux + - export FILENAME=cwtch-linux-$BUILDDATE.tar.gz - cd deploy - mv linux cwtch - tar -czf $FILENAME cwtch