50 lines
986 B
YAML
50 lines
986 B
YAML
# GoReleaser config for drive-health-metrics.
|
|
# https://goreleaser.com
|
|
#
|
|
# CGO is disabled so the binary is fully static (no glibc dependency) and runs
|
|
# unmodified across modern Linux distributions.
|
|
version: 2
|
|
|
|
project_name: drive-health-metrics
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
- go test ./...
|
|
|
|
builds:
|
|
- id: drive-health-metrics
|
|
main: .
|
|
binary: drive-health-metrics
|
|
env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w -X main.version={{ .Version }} -X main.commit={{ .ShortCommit }} -X main.date={{ .Date }}
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
|
|
archives:
|
|
- id: default
|
|
format: tar.gz
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
files:
|
|
- README.md
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
|
|
snapshot:
|
|
version_template: "{{ incpatch .Version }}-snapshot"
|
|
|
|
changelog:
|
|
use: git
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^chore:"
|