From 3dd5db693d8c716c0b3a4a6526ae4164095db0b8 Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Thu, 11 Jan 2018 09:43:06 -0800 Subject: [PATCH 1/2] Add goreleaser configuration --- .goreleaser.yml | 23 +++++++++++++++++++++++ .travis.yml | 21 ++++++++++++++++++--- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..6da1967 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,23 @@ +builds: + - main: main.go + binary: kube-bench + goos: + - darwin + - linux + goarch: + - amd64 +# Archive customization +archive: + format: tar.gz +dockers: + - + binary: kube-bench + image: aquasecurity/kube-bench + latest: true +fpm: + vendor: Aqua Security + description: "The Kubernetes Bench for Security is a Go application that checks whether Kubernetes is deployed according to security best practices" + license: Apache-2.0 + formats: + - deb + - rpm diff --git a/.travis.yml b/.travis.yml index c9bf753..32d6478 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,21 @@ +--- language: go -install: - - go get github.com/aquasecurity/kube-bench + +notifications: + email: false + +before_install: + - sudo apt-get -qq update + - sudo apt-get install -y rpm + - gem install --no-ri --no-rdoc fpm + +install: + - go get -v github.com/Masterminds/glide + - cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3 && go install && cd - # use a known good glide version + - glide install + script: - go test ./... - - go build -o kube-bench . + +after_success: + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash From f63cd118079b9de7503930182054dbcebd32a199 Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Fri, 12 Jan 2018 08:54:39 -0800 Subject: [PATCH 2/2] Fix docker repo path --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 6da1967..61aa356 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,7 +12,7 @@ archive: dockers: - binary: kube-bench - image: aquasecurity/kube-bench + image: aquasec/kube-bench latest: true fpm: vendor: Aqua Security