Skip to content

Commit 487ab0f

Browse files
kmrozioj
authored andcommitted
ci: embed version in builds
1 parent 73fbead commit 487ab0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ builds:
1111
# Defaults are 386, amd64 and arm64.
1212
goarch:
1313
- amd64
14+
ldflags:
15+
- -X main.Version={{ .Version }}
1416

1517
nfpms:
1618
# note that this is an array of nfpm configs

0 commit comments

Comments
 (0)