From 8b2c31aabcba1be629d55a54b7860361efdf270b Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Mon, 19 Feb 2024 10:50:52 +0100 Subject: [PATCH] fix ifs in goreleaser gotemplate (#1781) Signed-off-by: Kristoffer Dalby --- .goreleaser.yml | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 0ef28fa4..26495f78 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -98,12 +98,12 @@ kos: - linux/arm/v7 tags: - "{{ if not .Prerelease }}latest{{ end }}" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}" - - "{{ if not .Prerelease }}{{ .Major }}" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}" - - "{{ if not .Prerelease }}v{{ .Major }}" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}{{ end }}" + - "{{ if not .Prerelease }}{{ .Major }}{{ end }}" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}{{ end }}" + - "{{ if not .Prerelease }}v{{ .Major }}{{ end }}" - "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}" - "{{ .Tag }}" - '{{ trimprefix .Tag "v" }}' @@ -121,12 +121,12 @@ kos: - linux/arm/v7 tags: - "{{ if not .Prerelease }}latest{{ end }}" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}" - - "{{ if not .Prerelease }}{{ .Major }}" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}" - - "{{ if not .Prerelease }}v{{ .Major }}" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}{{ end }}" + - "{{ if not .Prerelease }}{{ .Major }}{{ end }}" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}{{ end }}" + - "{{ if not .Prerelease }}v{{ .Major }}{{ end }}" - "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}" - "{{ .Tag }}" - '{{ trimprefix .Tag "v" }}' @@ -147,12 +147,12 @@ kos: - linux/arm/v7 tags: - "{{ if not .Prerelease }}latest{{ end }}-debug" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}-debug" - - "{{ if not .Prerelease }}{{ .Major }}-debug" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}-debug" - - "{{ if not .Prerelease }}v{{ .Major }}-debug" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}-debug" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}{{ end }}-debug" + - "{{ if not .Prerelease }}{{ .Major }}{{ end }}-debug" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}-debug" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}{{ end }}-debug" + - "{{ if not .Prerelease }}v{{ .Major }}{{ end }}-debug" - "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}-debug" - "{{ .Tag }}-debug" - '{{ trimprefix .Tag "v" }}-debug' @@ -170,12 +170,12 @@ kos: - linux/arm/v7 tags: - "{{ if not .Prerelease }}latest{{ end }}-debug" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug" - - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}-debug" - - "{{ if not .Prerelease }}{{ .Major }}-debug" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug" - - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}-debug" - - "{{ if not .Prerelease }}v{{ .Major }}-debug" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}-debug" + - "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}{{ end }}-debug" + - "{{ if not .Prerelease }}{{ .Major }}{{ end }}-debug" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}-debug" + - "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}{{ end }}-debug" + - "{{ if not .Prerelease }}v{{ .Major }}{{ end }}-debug" - "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}-debug" - "{{ .Tag }}-debug" - '{{ trimprefix .Tag "v" }}-debug'