Skip to content

Commit

Permalink
Merge pull request #32 from reproio/add-goreleaser
Browse files Browse the repository at this point in the history
chore: add goreleaser to create assets when tagging
  • Loading branch information
okkez authored Jan 15, 2024
2 parents ebd9164 + 667ad2e commit 098d933
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
project_name: send-alb-metrics-to-datadog
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: main.go
binary: send-alb-metrics-to-datadog
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
archives:
- id: build
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- README.md
format_overrides:
- goos: Windows
format: zip
release:
prerelease: auto
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 098d933

Please sign in to comment.