2020-12-21 16:59:35 +00:00
---
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
2020-12-21 16:59:35 +00:00
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
2024-01-29 15:58:37 +05:30
- s390x
2020-09-02 13:04:01 +02:00
goarm :
- 6
- 7
2019-12-23 19:06:08 +02:00
ldflags :
2020-12-21 16:03:10 +00:00
- "-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-12-21 16:29:29 +00: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
2024-01-29 15:58:37 +05:30
contents :
- src : "cfg/**/*"
dst : "/etc/linux-bench/cfg"
2019-12-23 19:06:08 +02:00
formats :
- deb
- rpm