1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-30 10:11:23 +02:00

correctly store build number in binary

This commit is contained in:
Brad Rydzewski 2015-11-10 11:40:22 -08:00
parent a5f2ff509b
commit a13ce5cb6f

View File

@ -37,7 +37,7 @@ build:
go build
build_static:
go build --ldflags '-extldflags "-static" -X main.version=$(CI_BUILD_NUMBER)' -o drone_static
go build --ldflags '-extldflags "-static" -X main.build=$(CI_BUILD_NUMBER)' -o drone_static
test:
go test -cover $(PACKAGES)