Skip to content

Commit

Permalink
ci: fix goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Oskera committed Dec 19, 2023
1 parent ffb21b4 commit 26e2e60
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,23 @@ builds:
archives:
- id: tkgi-kubectx-archive
name_template: |-
{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch -}}
{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_
{{- with .Arch -}}
{{- if (eq . "386") -}}i386
{{- else if (eq . "amd64") -}}x86_64
{{- else -}}{{- . -}}
{{- end -}}
{{ end }}
{{- with .Arm -}}
{{- if (eq . "6") -}}hf
{{- else -}}v{{- . -}}
{{- end -}}
{{- end -}}
builds:
- tkgi-kubectx
replacements:
386: i386
amd64: x86_64
- tkgi-kubectx-archive
format_overrides:
- goos: windows
format: zip
- goos: windows
format: zip
files: ["LICENSE"]

release:
Expand Down

0 comments on commit 26e2e60

Please sign in to comment.