mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:03:22 +00:00
correctly store build number in binary
This commit is contained in:
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)
|
||||||
|
Reference in New Issue
Block a user