Skip to content

Commit

Permalink
add more goreleaser release targets
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Feb 5, 2024
1 parent 75a6b21 commit ff4b9db
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit ff4b9db

Please sign in to comment.