From c6072df9e9406deeed0f62471d6def20409e7d22 Mon Sep 17 00:00:00 2001 From: Nick Santamaria Date: Thu, 8 Feb 2024 16:06:52 +1100 Subject: [PATCH] Updating goreleaser name templates --- .goreleaser.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 112a320..fd0bcc1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -24,15 +24,21 @@ release: ``` archives: - - format: tar.gz - # this name template makes the OS and Arch compatible with the results of uname. - name_template: >- - {{ .ProjectName }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ .Arch }}{{ end }} - {{- if .Arm }}v{{ .Arm }}{{ end }} + - id: binaries + builds: + - lagoon + format: binary + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + wrap_in_directory: true + files: + - none* + - id: binaries-targz + builds: + - lagoon + format: tar.gz + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + wrap_in_directory: true + checksum: name_template: 'checksums.txt' snapshot: