Skip to content

Commit 54f8210

Browse files
committed
Adapt goreleaser.yml after "replacements" field deprecation
- Following guide here https://goreleaser.com/deprecations/#archivesreplacements
1 parent 097424b commit 54f8210

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.goreleaser.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ release:
1010
prerelease: auto
1111
archives:
1212
- format: tar.gz
13-
replacements:
14-
amd64: x86_64
15-
name_template: "gitops-{{.Os}}-{{.Arch}}"
13+
name_template: >-
14+
gitops-
15+
{{- title .Os }}-
16+
{{- if eq .Arch "amd64" }}x86_64
17+
{{- else }}{{ .Arch }}{{ end }}
1618
builds:
1719
- <<: &build_defaults
1820
binary: "gitops"

0 commit comments

Comments
 (0)