fix kubens archive format

This commit is contained in:
Ahmet Alp Balkan 2023-07-13 14:18:23 -07:00
parent 0783405da2
commit b545d21ef6

View File

@ -73,7 +73,13 @@ archives:
files: ["LICENSE"] files: ["LICENSE"]
- id: kubens-archive - id: kubens-archive
name_template: |- name_template: |-
kubens_{{ .Tag }}_{{ .Os }}_{{ .Arch -}} kubens_{{ .Tag }}_{{ .Os }}_
{{- with .Arch -}}
{{- if (eq . "386") -}}i386
{{- elif (eq . "amd64") -}}x86_64
{{- else -}}{{- . -}}
{{- end -}}
{{ end }}
{{- with .Arm -}} {{- with .Arm -}}
{{- if (eq . "6") -}}hf {{- if (eq . "6") -}}hf
{{- else -}}v{{- . -}} {{- else -}}v{{- . -}}
@ -81,9 +87,6 @@ archives:
{{- end -}} {{- end -}}
builds: builds:
- kubens - kubens
replacements:
386: i386
amd64: x86_64
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip