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)