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-14 19:10:14 +08:00
|
|
|
- CGO_ENABLED=0
|
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 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 }}"
|
2022-06-14 15:12:16 +08:00
|
|
|
|
|
|
|
dockers:
|
|
|
|
- image_templates:
|
|
|
|
- flashcatcloud/categraf:amd64-{{ .Tag }}
|
|
|
|
goos: linux
|
|
|
|
goarch: amd64
|
|
|
|
ids:
|
|
|
|
- build
|
|
|
|
dockerfile: docker/Dockerfile.goreleaser
|
|
|
|
extra_files:
|
|
|
|
- docker/entrypoint.sh
|
|
|
|
- conf/config.toml
|
|
|
|
- conf/logs.toml
|
|
|
|
- conf/input.cpu/cpu.toml
|
|
|
|
- conf/input.mem/mem.toml
|
|
|
|
- conf/input.disk/disk.toml
|
|
|
|
- conf/input.diskio/diskio.toml
|
|
|
|
- conf/input.kernel/kernel.toml
|
|
|
|
- conf/input.linux_sysctl_fs/linux_sysctl_fs.toml
|
|
|
|
- conf/input.system/system.toml
|
|
|
|
- conf/input.kernel_vmstat/kernel_vmstat.toml
|
|
|
|
- conf/input.netstat/netstat.toml
|
|
|
|
- conf/input.net/net.toml
|
|
|
|
- conf/input.docker/docker.toml
|
|
|
|
- conf/input.processes/processes.toml
|
|
|
|
use: buildx
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/amd64"
|
|
|
|
|
|
|
|
docker_manifests:
|
|
|
|
|
|
|
|
- name_template: flashcatcloud/categraf:{{ .Tag }}
|
|
|
|
image_templates:
|
|
|
|
- flashcatcloud/categraf:amd64-{{ .Tag }}
|
|
|
|
|
|
|
|
- name_template: flashcatcloud/categraf:latest
|
|
|
|
image_templates:
|
|
|
|
- flashcatcloud/categraf:amd64-{{ .Tag }}
|