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 19, 2024
1 parent ba74d93 commit 653b9b3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: build_release
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- name: checkout
uses: actions/checkout@v2
Expand Down
33 changes: 33 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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:
- amd64
# - arm64 # arm64 lambda is slightly cheaper
main: ./cmd/lambda
binary: bootstrap
flags: -tags lambda.norpc
ldflags: -s -w -X main.version={{.Version}}

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 653b9b3

Please sign in to comment.