feat(.goreleaser.yml): add prerelease and header to release

This commit is contained in:
Aaron U'Ren 2023-10-20 08:30:23 -05:00
parent eb30de9183
commit a00778e788
No known key found for this signature in database
GPG Key ID: 3A160440911786EE

View File

@ -1,34 +1,43 @@
---
release: release:
draft: true draft: true
prerelease: auto
header: |
## Summary
## Contributions
## Changelog
builds: builds:
- main: ./cmd/kube-router - main: ./cmd/kube-router
goos: goos:
- linux - linux
goarch: goarch:
- amd64 - amd64
- arm - arm
- arm64 - arm64
- ppc64le - ppc64le
- s390x - s390x
- riscv64 - riscv64
goarm: goarm:
- 6 - 6
- 7 - 7
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
ldflags: ldflags:
- "-X github.com/cloudnativelabs/kube-router/pkg/version.Version={{.Version}}" - "-X github.com/cloudnativelabs/kube-router/pkg/version.Version={{.Version}}"
- "-X github.com/cloudnativelabs/kube-router/pkg/version.BuildDate={{.Date}}" - "-X github.com/cloudnativelabs/kube-router/pkg/version.BuildDate={{.Date}}"
archives: archives:
- - format: tar.gz
format: tar.gz
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
.Arm }}{{ end }}' .Arm }}{{ end }}'
files: files:
- LICENSE* - LICENSE*
- README* - README*
- CHANGELOG* - CHANGELOG*
- Documentation* - Documentation*
snapshot: snapshot:
name_template: SNAPSHOT-{{ .Commit }} name_template: SNAPSHOT-{{ .Commit }}