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
|
2022-06-05 17:49:45 +08:00
|
|
|
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:
|
2022-06-05 17:49:45 +08:00
|
|
|
- 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 }}"
|