1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-18 06:08:10 +00:00
kube-bench/.goreleaser.yml

63 lines
1.5 KiB
YAML
Raw Normal View History

---
project_name: kube-bench
2019-07-12 13:12:59 +00:00
env:
- GO111MODULE=on
- CGO_ENABLED=0
2019-12-12 21:51:35 +00:00
- KUBEBENCH_CFG=/etc/kube-bench/cfg
2018-01-11 17:43:06 +00:00
builds:
- main: main.go
binary: kube-bench
tags:
- osusergo
- netgo
- static_build
2018-01-11 17:43:06 +00:00
goos:
- linux
2023-04-18 18:15:05 +00:00
- darwin
2018-01-11 17:43:06 +00:00
goarch:
- amd64
- arm
- arm64
- ppc64le
- s390x
goarm:
- 6
- 7
2019-12-12 21:51:35 +00:00
ldflags:
- "-s"
- "-w"
- "-extldflags '-static'"
- "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion={{.Version}}"
- "-X github.com/aquasecurity/kube-bench/cmd.cfgDir={{.Env.KUBEBENCH_CFG}}"
2018-01-11 17:43:06 +00:00
# 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"
maintainer: Yoav Rotem <yoav.rotem@aquasec.com>
license: Apache-2.0
homepage: https://github.com/aquasecurity/kube-bench
file_name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}'
contents:
- src: "cfg/**/*"
dst: "/etc/kube-bench/cfg"
- src: "cfg/config.yaml"
dst: "/etc/kube-bench/cfg/config.yaml"
formats:
- deb
- rpm
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
- '^release'