From 01e1a867f6721352af15d98843fc99f1ddaf193d Mon Sep 17 00:00:00 2001 From: Suhong Qin Date: Fri, 11 Aug 2023 02:03:15 +0000 Subject: [PATCH] feat: add release for lumberctl --- .goreleaser.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bbb886314..ebb420b45 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'