# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- go mod tidy
builds:
- id: kreaper
binary: kreaper
flags:
- -trimpath
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- builds:
- kreaper
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- ids:
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
image_templates:
- ghcr.io/baez90/kreaper:{{ .Version }}-amd64
- ghcr.io/baez90/kreaper:{{ .Major }}-amd64
dockerfile: deployments/Dockerfile
goarch: arm64
- "--platform=linux/arm64/v8"
- ghcr.io/baez90/kreaper:{{ .Version }}-arm64v8
- ghcr.io/baez90/kreaper:{{ .Major }}-arm64v8
docker_manifests:
- name_template: ghcr.io/baez90/kreaper:{{ .Version }}
- name_template: ghcr.io/baez90/kreaper:{{ .Major }}