1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

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

View File

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