Skip to content

Commit

Permalink
Fixing go-releaser (#126)
Browse files Browse the repository at this point in the history
Introduced ldflags which add version details.

Signed-off-by: Joe Talerico <rook@redhat.com>
Co-authored-by: Joe Talerico <rook@redhat.com>
  • Loading branch information
jtaleric and Joe Talerico authored Dec 17, 2023
1 parent cd902f0 commit 7b34f14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ builds:
- ppc64le
- s390x
dir: ./cmd/k8s-netperf/

ldflags:
- -X github.com/cloud-bulldozer/go-commons/version.GitCommit={{.Commit}} -X github.com/cloud-bulldozer/go-commons/version.BuildDate={{.Date}} -X github.com/cloud-bulldozer/go-commons/version.Version={{.Version}}
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
Expand Down

0 comments on commit 7b34f14

Please sign in to comment.