mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-15 20:39:08 +00:00
19 lines
369 B
YAML
19 lines
369 B
YAML
sudo: true
|
|
services:
|
|
- docker
|
|
|
|
language: go
|
|
|
|
install:
|
|
- go get github.com/aquasecurity/kube-bench
|
|
script:
|
|
- go test ./...
|
|
- 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
|