1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/.goreleaser.yml

58 lines
1.1 KiB
YAML
Raw Normal View History

project_name: kyverno-cli
2020-05-15 14:21:35 +00:00
before:
hooks:
- go mod download
2020-04-29 16:57:49 +00:00
builds:
- id: kyverno-cli
2020-05-15 14:21:35 +00:00
main: cmd/cli/kubectl-kyverno/main.go
2020-06-04 23:43:05 +00:00
binary: kyverno
2020-05-15 14:21:35 +00:00
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/kyverno/kyverno/pkg/version.BuildVersion={{.Version}} -X github.com/kyverno/kyverno/pkg/version.BuildHash={{ .FullCommit }} -X github.com/kyverno/kyverno/pkg/version.BuildTime={{ .Date }}
2020-05-15 14:21:35 +00:00
goos:
2020-04-29 16:57:49 +00:00
- linux
- darwin
2020-05-15 14:21:35 +00:00
- windows
goarch:
2020-04-29 16:57:49 +00:00
- amd64
- arm64
- s390x
ignore:
- goos: darwin
goarch: s390x
- goos: windows
goarch: s390x
2020-04-29 16:57:49 +00:00
archives:
- id: kyverno-cli-archive
2020-05-15 14:21:35 +00:00
name_template: |-
kyverno-cli_{{ .Tag }}_{{ .Os }}_{{ .Arch -}}
2020-05-15 14:21:35 +00:00
{{- with .Arm -}}
{{- if (eq . "6") -}}hf
{{- else -}}v{{- . -}}
{{- end -}}
{{- end -}}
builds:
- kyverno-cli
2020-05-15 14:21:35 +00:00
format_overrides:
2020-04-29 16:57:49 +00:00
- goos: windows
2020-04-29 17:50:50 +00:00
format: zip
replacements:
386: i386
amd64: x86_64
2020-05-15 14:21:35 +00:00
files: ["LICENSE"]
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
2020-05-28 19:23:12 +00:00
prerelease: auto
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- typo
- '^test:'
source:
enabled: true