diff --git a/.circleci/build.sh b/.circleci/build.sh index c4d383b4..21832bf2 100755 --- a/.circleci/build.sh +++ b/.circleci/build.sh @@ -8,7 +8,8 @@ go test -v if [ $? -eq 0 ]; then echo "building ..." - go build + TAG=$(git describe --abbrev=0 --tags)-$(date +"%s") + go build -ldflags "-X main.version="$TAG if [ $? -eq 0 ]; then echo "cleaning after tests ..."