mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-10-03 14:01:04 +02:00
.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:
parent
a33089d292
commit
ece8987028
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user