diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bbb88631..ebb420b4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -47,6 +47,28 @@ builds: - 'amd64' - 'arm64' + - + id: lumberctl + main: ./cmd/lumberctl + binary: lumberctl + mod_timestamp: '{{ .CommitTimestamp }}' + flags: + - '-a' + - '-trimpath' + ldflags: + - '-s' + - '-w' + - '-X={{ .ModulePath }}/internal/version.Name=lumberctl' + - '-X={{ .ModulePath }}/internal/version.Version={{ .Version }}' + - '-X={{ .ModulePath }}/internal/version.Commit={{ .Commit }}' + - '-extldflags=-static' + goos: + - 'darwin' + - 'linux' + - 'windows' + goarch: + - 'amd64' + - 'arm64' archives: - format: 'tar.gz'