mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-22 22:58:07 +00:00
2b3f036959
Signed-off-by: Thorsten Schifferdecker <ts@systs.org>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
---
|
|
env:
|
|
- GO111MODULE=on
|
|
- KUBEBENCH_CFG=/etc/kube-bench/cfg
|
|
builds:
|
|
- main: main.go
|
|
binary: kube-bench
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
goarm:
|
|
- 6
|
|
- 7
|
|
ldflags:
|
|
- "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion={{.Version}}"
|
|
- "-X github.com/aquasecurity/kube-bench/cmd.cfgDir={{.Env.KUBEBENCH_CFG}}"
|
|
# Archive customization
|
|
archives:
|
|
- id: default
|
|
format: tar.gz
|
|
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}'
|
|
files:
|
|
- "cfg/**/*"
|
|
- "cfg/config.yaml"
|
|
nfpms:
|
|
-
|
|
vendor: Aqua Security
|
|
description: "The Kubernetes Bench for Security is a Go application that checks whether Kubernetes is deployed according to security best practices"
|
|
license: Apache-2.0
|
|
homepage: https://github.com/aquasecurity/kube-bench
|
|
files:
|
|
"cfg/**/*": "/etc/kube-bench/cfg"
|
|
"cfg/config.yaml": "/etc/kube-bench/cfg"
|
|
formats:
|
|
- deb
|
|
- rpm
|