fix build number not being compiled into binary

This commit is contained in:
Brad Rydzewski 2017-05-08 11:39:38 +02:00
parent 314b4346e9
commit 3c6613a430

2
ci.sh
View file

@ -22,4 +22,4 @@ set -x
git clone git@github.com:drone/drone-enterprise.git extras
# build a static binary with the build number and extra features.
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.${DRONE_BUILD_NUMBER}' -tags extras -o release/drone github.com/drone/drone/drone
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -tags extras -o release/drone github.com/drone/drone/drone