Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arm64 to goarch list of goreleaser #152

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Mokey goreleaser configs
# See here: https://goreleaser.com
version: 2
before:
hooks:
- go mod tidy
Expand All @@ -8,6 +9,7 @@ builds:
- CGO_ENABLED=1
goarch:
- amd64
- arm64
goos:
- linux
ldflags:
Expand All @@ -18,11 +20,15 @@ builds:
- osusergo
- netgo
archives:
- replacements:
linux: linux
amd64: x86_64
- id: release
wrap_in_directory: true
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
- NOTICE
Expand All @@ -45,7 +51,12 @@ nfpms:
scripts:
postinstall: ./scripts/nfpm/postinstall.sh
rpm:
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
file_name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
scripts:
postinstall: ./scripts/nfpm/postinstall.sh
rpm:
Expand All @@ -66,7 +77,7 @@ nfpms:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-SNAPSHOT-{{.ShortCommit}}"
version_template: "{{ incpatch .Version }}-SNAPSHOT-{{.ShortCommit}}"
changelog:
sort: desc
groups:
Expand Down