CHORE: Update goreleaser config for new NFPM format (#2467)

Co-authored-by: SignalRichard <20459042+SignalRichard@users.noreply.github.com>
This commit is contained in:
Tom Limoncelli 2023-08-04 10:23:39 -04:00 committed by GitHub
parent 449e2a77e5
commit 7a3e30b2b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,27 +47,31 @@ universal_binaries:
id: build
nfpms:
- file_name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}'
id: packages_rpm
- id: packages_rpm
file_name_template: >-
{{ .ProjectName }}-
{{ .Version }}.
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
homepage: https://docs.dnscontrol.org/
description: "DNSControl: Infrastructure as Code for DNS Zones"
maintainer: 'Tom Limoncelli <tlimoncelli@stackoverflow.com>'
license: MIT
formats:
- rpm
replacements:
386: i386
amd64: x86_64
- file_name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}'
id: packages_deb
- id: packages_deb
file_name_template: >-
{{ .ProjectName }}-
{{ .Version }}.
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
homepage: https://docs.dnscontrol.org/
description: "DNSControl: Infrastructure as Code for DNS Zones"
maintainer: 'Tom Limoncelli <tlimoncelli@stackoverflow.com>'
license: MIT
formats:
- deb
replacements:
386: i386
dockers:
- image_templates:
- &amd_image "stackexchange/{{.ProjectName}}:{{ .Version }}-amd64"