linux-bench/.goreleaser.yml

39 lines
959 B
YAML
Raw Normal View History

---
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
- arm
- arm64
- s390x
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
contents:
- src: "cfg/**/*"
dst: "/etc/linux-bench/cfg"
2019-12-23 19:06:08 +02:00
formats:
- deb
- rpm