From ff4b9dbe930660ef912a9266205af3f68e6ffb02 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Mon, 5 Feb 2024 15:26:15 -0500 Subject: [PATCH] add more goreleaser release targets --- .goreleaser.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bb7ecf50e..86870927d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -46,7 +46,7 @@ builds: tags: [ windows ] env: - CGO_ENABLED=0 - # Build CLI binary without embedded UI for linux. Required by our Console. + # Build CLI binary without embedded UI for linux. - id: plural-cli-console targets: - linux_amd64 @@ -62,6 +62,23 @@ builds: env: - CGO_ENABLED=0 binary: plural + - id: plural-cli-headless + targets: + - linux_amd64 + - linux_arm64 + - darwin_amd64 + - darwin_arm64 + ldflags: + - -s + - -w + - -X "github.com/pluralsh/plural-cli/cmd/plural.Version={{.Version}}" + - -X "github.com/pluralsh/plural-cli/cmd/plural.Commit={{.Commit}}" + - -X "github.com/pluralsh/plural-cli/cmd/plural.Date={{.Date}}" + - -X "github.com/pluralsh/plural-cli/pkg/scm.GitlabClientSecret={{.Env.GITLAB_CLIENT_SECRET}}" + tags: [ linux ] + env: + - CGO_ENABLED=0 + binary: plural archives: - id: plural-cli @@ -78,6 +95,13 @@ archives: {{- title .Os }}_ {{- if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} + - id: plural-cli-headless + builds: [ plural-cli-headless ] + name_template: >- + {{ .ProjectName }}_headless_{{ .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} checksum: name_template: 'checksums.txt'