From 26e2e60929de90536bf6a403b2315e1d84910380 Mon Sep 17 00:00:00 2001 From: Jakub Oskera Date: Tue, 19 Dec 2023 16:06:45 +0100 Subject: [PATCH] ci: fix goreleaser config --- .goreleaser.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index de0195cf..895b416e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: