Skip to content
Snippets Groups Projects
Commit b339a753 authored by Liz Rice's avatar Liz Rice Committed by GitHub
Browse files

Add Docker build & push to Travis job

parent 21b7d8d9
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment