Skip to content

Commit

Permalink
include time and hash in build info (kyverno#10474)
Browse files Browse the repository at this point in the history
Signed-off-by: airycanon <[email protected]>
  • Loading branch information
airycanon authored Jun 24, 2024
1 parent 6e92066 commit 585aff0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 585aff0

Please sign in to comment.