diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5b29c7f5..2a52bbfd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -17,15 +17,18 @@ builds: -X "github.com/metal-toolbox/alloy/internal/version.GitBranch={{ .Branch }}" -X "github.com/metal-toolbox/alloy/internal/version.BuildDate={{ .Date }}" - archives: - id: go format: tar.gz - name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" - replacements: - amd64: 64bit - darwin: macOS - linux: Linux + name_template: >- + {{ .ProjectName }}_ + {{ .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}64bit + {{- else if eq .Arch "386" }}32bit + {{- else if eq .Arch "arm" }}ARM + {{- else if eq .Arch "arm64" }}ARM64 + {{- else }}{{ .Arch }}{{ end }} files: - README.md