From 206013ab02af16d326cea394807a1743eefb82ec Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:33:05 -0700 Subject: [PATCH] Fix usage of archive replacements (#586) Signed-off-by: eduardo apolinario Co-authored-by: eduardo apolinario --- .goreleaser.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index d4b8dd07f..8c36e517f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -29,33 +29,23 @@ builds: archives: - id: kubectl-flyte-archive name_template: |- - kubectl-flyte_{{ .Tag }}_{{ .Os }}_{{ .Arch -}} - {{- with .Arm -}} - {{- if (eq . "6") -}}hf - {{- else -}}v{{- . -}} - {{- end -}} - {{- end -}} + kubectl-flyte_{{ .Tag }}_{{ .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} builds: - kubectl-flyte - replacements: - 386: i386 - amd64: x86_64 format_overrides: - goos: windows format: zip - id: flytepropeller-archive name_template: |- - flytepropeller_{{ .Tag }}_{{ .Os }}_{{ .Arch -}} - {{- with .Arm -}} - {{- if (eq . "6") -}}hf - {{- else -}}v{{- . -}} - {{- end -}} - {{- end -}} + flytepropeller_{{ .Tag }}_{{ .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} builds: - flytepropeller - replacements: - 386: i386 - amd64: x86_64 format_overrides: - goos: windows format: zip