Skip to content

Commit

Permalink
Use name_template instead of removed replacements feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge committed Apr 17, 2024
1 parent e0f699a commit 77a92d0
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,35 @@ 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
Expand Down

0 comments on commit 77a92d0

Please sign in to comment.