Skip to content

Commit

Permalink
Updating goreleaser name templates
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksantamaria authored Feb 8, 2024
1 parent ed2cdae commit c6072df
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c6072df

Please sign in to comment.