Skip to content

Commit

Permalink
goreleaser: fixes configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Aug 29, 2023
1 parent fd4ff99 commit 58c05b8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 58c05b8

Please sign in to comment.