Skip to content

Commit

Permalink
Update Goreleaser
Browse files Browse the repository at this point in the history
This allows for compatibility with new version of goreleaser as some
functionality was removed.
It also adds universal binaries and support for more architectures
  • Loading branch information
frankywahl committed Feb 23, 2024
1 parent b2448b1 commit 2d2b679
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,25 @@ builds:
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}

universal_binaries:
- ids:
- mfaws
replace: false

archives:
-
format: binary
replacements:
darwin: macOS
linux: Linux
windows: Windows
amd64: x86_64
files:
- none*

name_template: |
mfaws_
{{- .Version}}_
{{- if eq .Os "darwin" }}macOS
{{- else if eq .Os "linux" }}Linux
{{- else if eq .Os "windows" }}Windows{{ end }}_
{{- .Arch -}}
release:
prerelease: auto

Expand All @@ -49,7 +54,7 @@ dockers:
-
goos: linux
goarch: amd64
binaries:
ids:
- mfaws
dockerfile: build/package/Dockerfile
image_templates:
Expand Down

0 comments on commit 2d2b679

Please sign in to comment.