diff --git a/.goreleaser.yml b/.goreleaser.yml index f8aa5f3..ee942c9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,20 +1,28 @@ env: - GO111MODULE=on + - LINUXBENCH_CFG=/etc/linux-bench/cfg builds: - - main: main.go + - main: . binary: linux-bench goos: - linux goarch: - amd64 + ldflags: + - "-X github.com/aquasecurity/linux-bench/root.cfgDir={{.Env.LINUXBENCH_CFG}}" # Archive customization -archive: - format: tar.gz -nfpm: - vendor: Aqua Security - description: "The Linux Bench for Security is a Go application that checks whether Linux host is deployed according to security best practices" - license: Apache-2.0 - homepage: https://github.com/aquasecurity/linux-bench - formats: - - deb - - rpm \ No newline at end of file +archives: + - id: compress + format: tar.gz + 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