Skip to content

Commit

Permalink
Merge pull request #85 from matyasselmeci/pr/replacements-deprecation
Browse files Browse the repository at this point in the history
Fix 'replacements' deprecation
  • Loading branch information
djw8605 authored Oct 4, 2023
2 parents c2951e9 + 5305a50 commit 770d925
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ nfpms:
- src: resources/10-stash-plugin.conf
dst: "/etc/condor/config.d/10-stash-plugin.conf"
type: config|noreplace
replacements:
amd64: x86_64
file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ .Arch }}"
file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ if eq .Arch \"amd64\" }}x86_64{{ else }}{{ .Arch }}{{ end }}"
deb:
contents:
- src: LICENSE.txt
Expand Down Expand Up @@ -170,11 +168,9 @@ nfpms:
dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/LICENSE.txt"
- src: README.md
dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/README.md"
replacements:
amd64: x86_64
replaces:
- stashcache-client < 6.4.0
file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ .Arch }}"
file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ if eq .Arch \"amd64\" }}x86_64{{ else }}{{ .Arch }}{{ end }}"
deb:
file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}_{{ .Arch }}"
contents:
Expand Down

0 comments on commit 770d925

Please sign in to comment.