mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-27 00:48:07 +00:00
4925adbe6b
goreleaser updated and got some functions deprecated. • ARCHIVES • DEPRECATED: `archive` should not be used anymore, check https://goreleaser.com/deprecations#archive for more info. • LINUX PACKAGES WITH NFPM • DEPRECATED: `nfpm` should not be used anymore, check https://goreleaser.com/deprecations#nfpm for more info. Co-authored-by: Liz Rice <liz@lizrice.com> Co-authored-by: Roberto Rojas <robertojrojas@gmail.com>
32 lines
800 B
YAML
32 lines
800 B
YAML
---
|
|
env:
|
|
- GO111MODULE=on
|
|
- KUBEBENCH_CFG=/etc/kube-bench/cfg
|
|
builds:
|
|
- main: main.go
|
|
binary: kube-bench
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
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
|
|
files:
|
|
- "cfg/**/*"
|
|
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"
|
|
formats:
|
|
- deb
|
|
- rpm
|