From b545d21ef6d5ffbef1b4d6c115f9ad7a0137ad17 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Thu, 13 Jul 2023 14:18:23 -0700 Subject: [PATCH] fix kubens archive format --- .goreleaser.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ae1282cc..8d3d5eba 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -73,7 +73,13 @@ archives: files: ["LICENSE"] - id: kubens-archive 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 -}} {{- if (eq . "6") -}}hf {{- else -}}v{{- . -}} @@ -81,9 +87,6 @@ archives: {{- end -}} builds: - kubens - replacements: - 386: i386 - amd64: x86_64 format_overrides: - goos: windows format: zip