Skip to content

Commit

Permalink
chore: Configure goreleaser (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavrotems authored and danielpacak committed Jan 9, 2020
1 parent 5a92100 commit 27a0d33
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
docker-bench
coverage.txt
dist
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
env:
- GO111MODULE=on
- LINUXBENCH_CFG=/etc/docker-bench/cfg
builds:
- main: .
binary: docker-bench
goos:
- linux
goarch:
- amd64
ldflags:
- "-X github.com/aquasecurity/docker-bench/root.cfgDir={{.Env.LINUXBENCH_CFG}}"
# Archive customization
archives:
- id: compress
format: tar.gz
files:
- "cfg/**/*"
nfpms:
- vendor: Aqua Security
description: "Checks whether Docker is deployed according to security best practices as defined in the CIS Docker Benchmark"
license: Apache-2.0
homepage: https://github.com/aquasecurity/docker-bench
files:
"cfg/**/*": "/etc/docker-bench/cfg"
formats:
- deb
- rpm
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ script:
after_success:
- 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:
matrix:
- GO111MODULE=on

0 comments on commit 27a0d33

Please sign in to comment.