categraf/.goreleaser.yaml

43 lines
783 B
YAML
Raw Normal View History

2022-06-05 15:40:16 +08:00
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
snapshot:
name_template: '{{ .Tag }}'
checksum:
name_template: 'checksums.txt'
changelog:
skip: true
builds:
- id: build
main: ./
binary: categraf
env:
2022-06-05 17:07:48 +08:00
- CGO_ENABLED=1
2022-06-05 15:40:16 +08:00
goos:
- linux
- windows
goarch:
- amd64
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
archives:
- id: categraf
format: tar.gz
format_overrides:
- goos: windows
format: zip
2022-06-05 15:40:16 +08:00
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- conf/*
2022-06-05 15:40:16 +08:00
release:
github:
2022-06-05 17:26:47 +08:00
owner: kongfei605
2022-06-05 15:40:16 +08:00
name: categraf
2022-06-05 17:07:48 +08:00
name_template: "{{ .ProjectName }}-v{{ .Version }}"