nezha/.goreleaser.yml
2021-11-03 09:36:18 +08:00

44 lines
718 B
YAML

before:
hooks:
- go mod tidy -v
builds:
- id: nezha-agent
env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- linux
- windows
- darwin
goarch:
- arm
- arm64
- 386
- amd64
- mips
- mipsle
gomips:
- softfloat
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
main: ./cmd/agent
binary: nezha-agent
universal_binaries:
- replace: true
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{.ProjectName}}"
archives:
- name_template: "nezha-agent_{{ .Os }}_{{ .Arch }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"