1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-22 16:18:07 +00:00

Add Docker build & push to Travis job

This commit is contained in:
Liz Rice 2017-08-03 15:53:49 +01:00 committed by GitHub
parent 21b7d8d9d6
commit b339a753b5

View File

@ -1,6 +1,18 @@
sudo: true
services:
- docker
language: go language: go
install: install:
- go get github.com/aquasecurity/kube-bench - go get github.com/aquasecurity/kube-bench
script: script:
- go test ./... - go test ./...
- go build -o kube-bench . - go build -o kube-bench .
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t aquasec/kube-bench .;
docker push aquasec/kube-bench;
fi