From 31bda44c5b341551335f77396b98fe8222f50e9d Mon Sep 17 00:00:00 2001 From: Pradyot Ranjan <99216956+prady0t@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:26:50 +0530 Subject: [PATCH] Removed usage of `replacements` from goreleaser.yml file (#7833) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Changed goreleaser.yml file Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> * Changed syntax Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> * Small indent fix Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> --------- Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> Co-authored-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> Co-authored-by: Charles-Edouard Brétéché Co-authored-by: Mariam Fahmy --- .goreleaser.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a02ca440fb..506f5400e2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -43,20 +43,18 @@ signs: archives: - id: kyverno-cli-archive name_template: |- - kyverno-cli_{{ .Tag }}_{{ .Os }}_{{ .Arch -}} - {{- with .Arm -}} - {{- if (eq . "6") -}}hf - {{- else -}}v{{- . -}} - {{- end -}} - {{- end -}} + kyverno-cli_{{ .Tag }}_{{ .Os }}_ + {{ - with .Arch - }} + {{ - if eq . "amd64" - }}x86_64{{- else if eq . "386" -}}i386{{- else -}}{{- . -}}{{- end -}} + {{ - end - }} + {{ - with .Arm - }} + {{ - if eq . "6" - }}hf{{- else -}}v{{- . -}}{{- end -}} + {{ - end - }} builds: - kyverno-cli format_overrides: - goos: windows format: zip - replacements: - 386: i386 - amd64: x86_64 files: ["LICENSE"] checksum: