repo-sync/.goreleaser.yaml
James Coleman 5af1dd8928
Some checks failed
Go package / build (push) Has been cancelled
first commit
2026-07-28 19:22:20 -05:00

61 lines
1.2 KiB
YAML

# GoReleaser config for repo-sync.
# 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: repo-sync
before:
hooks:
- go mod tidy
- go test ./...
builds:
- id: repo-sync
main: .
binary: repo-sync
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/grmrgecko/repo-sync/config.Version={{ .Version }}
- -X github.com/grmrgecko/repo-sync/config.Commit={{ .ShortCommit }}
- -X github.com/grmrgecko/repo-sync/config.Date={{ .Date }}
- -X github.com/grmrgecko/repo-sync/config.Mode=release
goos:
- linux
goarch:
- "386"
- amd64
- arm
- arm64
- ppc64le
goarm:
- "6"
archives:
- id: default
formats: [tar.gz]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- README.md
- LICENSE
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-snapshot"
changelog:
use: git
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"