Skip to content

Commit

Permalink
Update goreleaser config (#513)
Browse files Browse the repository at this point in the history
* Use a string to silence schema check.
* Use name_template instead of removed replacements feature.
   https://goreleaser.com/deprecations/#archivesreplacements
* Replace tap with repository.
   https://goreleaser.com/deprecations/#brewstap

Signed-off-by: Marcin Owsiany <[email protected]>
  • Loading branch information
porridge authored Apr 22, 2024
1 parent 78943e4 commit 9799908
Showing 1 changed file with 26 additions and 8 deletions.
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

0 comments on commit 9799908

Please sign in to comment.