Inject version and commit during goreleaser build

This commit is contained in:
Cuong Manh Le authored and Cuong Manh Le committed 2023-03-31 23:31:38 +07:00
1 parent c94e1b02d2
commit 8869e33a20
3 files changed
+6

No files matched your search

+2
View File
@@ -9,6 +9,8 @@ builds:
- -trimpath - -trimpath
ldflags: ldflags:
- -s -w - -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
goos: goos:
- darwin - darwin
goarch: goarch:
+2
View File
@@ -9,6 +9,8 @@ builds:
- -trimpath - -trimpath
ldflags: ldflags:
- -s -w - -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
goos: goos:
- darwin - darwin
- linux - linux
+2
View File
@@ -9,6 +9,8 @@ builds:
- -trimpath - -trimpath
ldflags: ldflags:
- -s -w - -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
goos: goos:
- linux - linux
- freebsd - freebsd