Skip to content

Commit

Permalink
chore: Update goreleaser config for v1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 2, 2023
1 parent 5e7063e commit 87fc2f1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- '**/*.ps1'
- '**/*.tmpl'
- '.github/workflows/**'
- '.goreleaser.yaml'
- 'Makefile'
- 'assets/docker/**'
- 'assets/scripts/**'
Expand Down
39 changes: 27 additions & 12 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,18 @@ archives:
- LICENSE
- README.md
- completions/*
replacements:
386: i386
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "mips64" }}mips64_hardfloat
{{- else if eq .Arch "mips64le" }}mips64le_hardfloat
{{- else }}{{ .Arch }}{{ end -}}
format_overrides:
- goos: windows
format: zip
rlcp: true
- id: glibc
builds:
- chezmoi-cgo-glibc
Expand All @@ -96,6 +103,7 @@ archives:
- README.md
- completions/*
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}-glibc_{{ .Arch }}'
rlcp: true
- id: musl
builds:
- chezmoi-cgo-musl
Expand All @@ -104,6 +112,7 @@ archives:
- README.md
- completions/*
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}-musl_{{ .Arch }}'
rlcp: true

changelog:
use: github-native
Expand Down Expand Up @@ -139,10 +148,13 @@ nfpms:
bindir: /usr/bin
overrides:
deb:
file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
replacements:
386: i386
arm: armel
file_name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "arm" }}armel
{{- else }}{{ .Arch }}{{ end -}}
contents:
- src: completions/chezmoi-completion.bash
dst: /usr/share/bash-completion/completions/chezmoi
Expand All @@ -151,12 +163,14 @@ nfpms:
- src: completions/chezmoi.zsh
dst: /usr/share/zsh/vendor-completions/_chezmoi
rpm:
file_name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}'
replacements:
amd64: x86_64
386: i686
arm: armhfp
arm64: aarch64
file_name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i686
{{- else if eq .Arch "arm" }}armhfp
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end -}}
contents:
- src: completions/chezmoi-completion.bash
dst: /usr/share/bash-completion/completions/chezmoi
Expand Down Expand Up @@ -234,3 +248,4 @@ source:
prefix_template: '{{ .ProjectName }}-{{ .Version }}/'
files:
- COMMIT
rlcp: true

0 comments on commit 87fc2f1

Please sign in to comment.