-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy path.goreleaser.yml
38 lines (37 loc) · 959 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
env:
- GO111MODULE=on
- LINUXBENCH_CFG=/etc/linux-bench/cfg
builds:
- main: .
binary: linux-bench
goos:
- linux
goarch:
- amd64
- arm
- arm64
- s390x
goarm:
- 6
- 7
ldflags:
- "-X github.com/aquasecurity/linux-bench/root.cfgDir={{.Env.LINUXBENCH_CFG}}"
# Archive customization
archives:
- id: compress
format: tar.gz
name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}"
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"
formats:
- deb
- rpm