2019-12-17 00:47:39 +00:00
env :
- GO111MODULE=on
2019-12-23 19:06:08 +02:00
- LINUXBENCH_CFG=/etc/linux-bench/cfg
2019-12-17 00:47:39 +00:00
builds :
2019-12-23 19:06:08 +02:00
- main : .
2019-12-17 00:47:39 +00:00
binary : linux-bench
goos :
- linux
goarch :
- amd64
2020-09-02 13:04:01 +02:00
- arm
- arm64
goarm :
- 6
- 7
2019-12-23 19:06:08 +02:00
ldflags :
- "-X github.com/aquasecurity/linux-bench/root.cfgDir={{.Env.LINUXBENCH_CFG}}"
2019-12-17 00:47:39 +00:00
# Archive customization
2019-12-23 19:06:08 +02:00
archives :
- id : compress
format : tar.gz
2020-09-02 13:04:01 +02:00
name_template : '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}'
2019-12-23 19:06:08 +02:00
files :
- "cfg/**/*"
nfpms :
- vendor : Aqua Security
description : "Linux-bench checks whether a Linux server according to security best practices as defined in the CIS Distribution-Independent Linux Benchmark"
license : Apache-2.0
homepage : https://github.com/aquasecurity/linux-bench
files :
"cfg/**/*": "/etc/linux-bench/cfg"
formats :
- deb
- rpm