1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/.goreleaser.yml

76 lines
1.3 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}}
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
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
args:
- sign-blob
- --output-certificate=${certificate}
- --output-signature=${signature}
- ${artifact}
- --yes
artifacts: all
output: true
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 }}_
{{ - with .Arch - }}
{{ - if eq . "amd64" - }}x86_64{{- else if eq . "386" -}}i386{{- else -}}{{- . -}}{{- end -}}
{{ - end - }}
{{ - with .Arm - }}
{{ - if eq . "6" - }}hf{{- else -}}v{{- . -}}{{- end -}}
{{ - end - }}
2020-05-15 14:21:35 +00:00
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
2020-05-15 14:21:35 +00:00
files: ["LICENSE"]
2020-05-15 14:21:35 +00:00
checksum:
name_template: checksums.txt
source:
enabled: true
2020-05-15 14:21:35 +00:00
release:
2020-05-28 19:23:12 +00:00
prerelease: auto
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- typo
- '^test:'