Skip to content

Commit

Permalink
adding a version timestamp in the circleci build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami Alajrami committed Feb 23, 2018
1 parent af76689 commit faed0ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."
Expand Down

0 comments on commit faed0ba

Please sign in to comment.