correctly store build number in binary
This commit is contained in:
parent
a5f2ff509b
commit
a13ce5cb6f
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue