categraf/.goreleaser.yaml

44 lines
794 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 }}"
2022-06-05 17:56:44 +08:00
wrap_in_directory: true
2022-06-05 15:40:16 +08:00
files:
- conf/*
2022-06-05 15:40:16 +08:00
release:
github:
2022-06-05 20:21:27 +08:00
owner: flashcatcloud
2022-06-05 15:40:16 +08:00
name: categraf
2022-06-06 11:16:25 +08:00
name_template: "v{{ .Version }}"