From 8faa1ed57820b481fedd7eb1a5611bd1e14cf100 Mon Sep 17 00:00:00 2001 From: Jakub Oskera Date: Tue, 19 Dec 2023 16:17:06 +0100 Subject: [PATCH] ci: fix goreleaser config --- .goreleaser.yml | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index de0195cf..1d8745b8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,45 +11,37 @@ builds: env: - CGO_ENABLED=0 goos: - - linux - - darwin - - windows + - linux + - darwin + - windows goarch: - - amd64 - - "386" - - arm - - arm64 - goarm: - - 6 - - 7 - ignore: - - goos: darwin - goarch: "386" - - goos: windows - goarch: "arm" - - goos: windows - goarch: "arm64" - - goos: linux - goarch: arm - goarm: 6 + - amd64 + - arm + - arm64 + - ppc64le + - s390x + goarm: [6, 7] 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 format_overrides: - - goos: windows - format: zip + - goos: windows + format: zip files: ["LICENSE"] release: