Skip to content

Commit

Permalink
Add go releaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
edw-defang committed Mar 18, 2024
1 parent ba74d93 commit f0dd91b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 1

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
# goarch: # arm64 lambda is slightly cheaper
# - amd64
# - arm64

archives:
- format: zip
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

0 comments on commit f0dd91b

Please sign in to comment.