Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update goreleaser config #513

Merged
merged 4 commits into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ builds:
- linux
- darwin
goarch:
- 386
- "386"
- amd64
- arm
- arm64
Expand All @@ -27,23 +27,41 @@ archives:
- id: kubectl-kuttl-tarball
builds:
- kubectl-kuttl
replacements:
386: i386
amd64: x86_64
# Based on the default name_template with addition of arch replacements
# See https://goreleaser.com/customization/archive/#archives
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
format: tar.gz
- id: binaries
builds:
- manager
- kubectl-kuttl
replacements:
386: i386
amd64: x86_64
# Based on the default name_template with addition of arch replacements
# See https://goreleaser.com/customization/archive/#archives
name_template: >-
{{ .Binary }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
format: binary
brews:
- name: kuttl-cli
ids:
- kubectl-kuttl-tarball
tap:
repository:
owner: kudobuilder
name: homebrew-tap
commit_author:
Expand Down
Loading