.goreleaser.yml: Add LDFLAGS

goreleaser was missing ldflags, so the binaries produced and added to
the release did not include version information.
This commit is contained in:
Manuel Rüger 2020-07-29 11:05:45 +02:00
parent a33089d292
commit ece8987028

View File

@ -15,6 +15,10 @@ builds:
- 7
env:
- CGO_ENABLED=0
ldflags:
- "-X github.com/cloudnativelabs/kube-router/pkg/cmd.version={{.Version}}"
- "-X github.com/cloudnativelabs/kube-router/pkg/cmd.buildDate={{.Date}}"
archives:
-
format: tar.gz