forked from mirrors/linux-bench
commit
bb7432e243
3 changed files with 40 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
coverage.txt
|
coverage.txt
|
||||||
|
linux-bench
|
||||||
|
dist
|
||||||
|
|
28
.goreleaser.yml
Normal file
28
.goreleaser.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
env:
|
||||||
|
- GO111MODULE=on
|
||||||
|
- LINUXBENCH_CFG=/etc/linux-bench/cfg
|
||||||
|
builds:
|
||||||
|
- main: .
|
||||||
|
binary: linux-bench
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
ldflags:
|
||||||
|
- "-X github.com/aquasecurity/linux-bench/root.cfgDir={{.Env.LINUXBENCH_CFG}}"
|
||||||
|
# Archive customization
|
||||||
|
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
|
|
@ -14,6 +14,15 @@ script:
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
- provider: script
|
||||||
|
skip_cleanup: true
|
||||||
|
script: curl -sL https://git.io/goreleaser | bash
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
condition: "$TRAVIS_OS_NAME = linux"
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
|
|
Loading…
Add table
Reference in a new issue