categraf/.goreleaser.yaml

154 lines
3.6 KiB
YAML
Raw Permalink 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: linux-arm64
2022-06-24 23:29:34 +08:00
main: ./
binary: categraf
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- arm64
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
- id: linux-amd64
main: ./
binary: categraf
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
- id: linux-amd64-cgo
2022-06-24 23:29:34 +08:00
main: ./
binary: categraf
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
tags:
- enterprise
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
- id: windows
2022-06-05 15:40:16 +08:00
main: ./
binary: categraf
env:
2022-06-22 16:50:32 +08:00
- CGO_ENABLED=0
2022-06-05 15:40:16 +08:00
goos:
- windows
goarch:
- amd64
2022-06-22 16:50:32 +08:00
- arm64
2022-06-05 15:40:16 +08:00
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
archives:
- id: categraf
2022-06-24 23:29:34 +08:00
builds:
- linux-amd64-cgo
- linux-arm64
- windows
2022-06-05 15:40:16 +08:00
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 }}"
2022-06-14 15:12:16 +08:00
dockers:
- image_templates:
2022-06-22 16:50:32 +08:00
- flashcatcloud/categraf:{{ .Tag }}-amd64
2022-06-14 15:12:16 +08:00
goos: linux
goarch: amd64
ids:
- linux-amd64
2022-06-14 15:12:16 +08:00
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
2022-06-14 21:19:20 +08:00
- conf/input.kubernetes/kubernetes.toml
2022-06-14 15:12:16 +08:00
- conf/input.processes/processes.toml
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
2022-06-22 16:50:32 +08:00
- image_templates:
- flashcatcloud/categraf:{{ .Tag }}-arm64v8
goos: linux
goarch: arm64
ids:
- linux-arm64
2022-06-22 16:50:32 +08:00
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.kubernetes/kubernetes.toml
- conf/input.processes/processes.toml
use: buildx
build_flag_templates:
- "--platform=linux/arm64/v8"
2022-06-14 15:12:16 +08:00
docker_manifests:
- name_template: flashcatcloud/categraf:{{ .Tag }}
image_templates:
2022-06-22 16:50:32 +08:00
- flashcatcloud/categraf:{{ .Tag }}-amd64
- flashcatcloud/categraf:{{ .Tag }}-arm64v8
2022-06-14 15:12:16 +08:00
- name_template: flashcatcloud/categraf:latest
image_templates:
2022-06-22 16:50:32 +08:00
- flashcatcloud/categraf:{{ .Tag }}-amd64
- flashcatcloud/categraf:{{ .Tag }}-arm64v8