pkg-proxy/.goreleaser.yaml
2026-04-13 09:14:33 +01:00

67 lines
1.1 KiB
YAML

version: 2
project_name: proxy
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/proxy
binary: proxy
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Commit={{.Commit}}
archives:
- formats: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE*
- README*
checksum:
name_template: "checksums.txt"
signs:
- cmd: cosign
certificate: "${artifact}.pem"
args:
- sign-blob
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum
output: true
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- Merge pull request
- Merge branch
release:
github:
owner: git-pkgs
name: proxy
draft: false
prerelease: auto