Skip to content

Commit

Permalink
ci: use ldflags to build binary
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonTheLeg committed Sep 24, 2022
1 parent 9301a1d commit 4ab3de5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ builds:
- ppc64le
- s390x
goarm: [6, 7]
ldflags:
- -s -w -X github.com/simontheleg/konf-go/cmd.gitversion={{.Version}} -X github.com/simontheleg/konf-go/cmd.gitcommit={{.Commit}} -X github.com/simontheleg/konf-go/cmd.builddate={{.Date}}

0 comments on commit 4ab3de5

Please sign in to comment.