1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 10:28:36 +00:00

include time and hash in build info (#10474)

Signed-off-by: airycanon <airycanon@airycanon.me>
This commit is contained in:
Yukun Wang 2024-06-24 19:15:39 +08:00 committed by GitHub
parent 6e92066ac7
commit 585aff0aca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,10 @@ before:
builds:
- id: kyverno-cli
main: cmd/cli/kubectl-kyverno/main.go
# As mentioned in https://github.com/golang/go/issues/51831, to include build info, we should use go build <package>
# instead of go build main.go here.
# see https://goreleaser.com/customization/builds/
main: ./cmd/cli/kubectl-kyverno
binary: kyverno
env:
- CGO_ENABLED=0