Skip to content

Commit fac88f9

Browse files
authored
add version info to goreleasers ldflags
1 parent 69b7480 commit fac88f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ build:
99
- 386
1010
- arm
1111
- arm64
12+
ldflags:
13+
- -s -w -X main.build={{.Version}} -X github.com/containrrr/watchtower/cmd.version={{.Version}}
14+
- ./usemsan=-msan
1215
archives:
1316
-
1417
name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"

0 commit comments

Comments
 (0)