mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-03 13:12:22 +00:00
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
|
go build
|
||||||
|
|
||||||
build_static:
|
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:
|
test:
|
||||||
go test -cover $(PACKAGES)
|
go test -cover $(PACKAGES)
|
||||||
|
|
Loading…
Reference in a new issue