Skip to content

Commit

Permalink
Merge pull request #204 from dweomer/fix-ci-trivy
Browse files Browse the repository at this point in the history
ci: fix trivy 'the input device is not a TTY'
  • Loading branch information
briandowns authored Aug 19, 2020
2 parents 1a231ed + ca1d07c commit 80d0108
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ steps:
event:
- tag

- name: docker-k8s-build
image: rancher/build-base:v1.14.2
volumes:
- name: docker
path: /var/run/docker.sock
commands:
- DRONE_TAG=${DRONE_TAG} BUILD_K8S_IMAGE=true make k8s-image
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
when:
instance:
- drone-pr.rancher.io

- name: docker-k8s-publish
image: rancher/build-base:v1.14.2
volumes:
Expand Down
2 changes: 1 addition & 1 deletion scripts/k8s-image
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ docker build \
-t ${IMAGE_REPO}/kubernetes:${VERSION} .

# scan kubernetes image
docker run -v /var/run/docker.sock:/var/run/docker.sock --rm -it --name=scan-k8s docker.io/aquasec/trivy:0.10.2 i --severity ${SEVERITIES} \
docker run -v /var/run/docker.sock:/var/run/docker.sock --rm --name=scan-k8s docker.io/aquasec/trivy:0.10.2 --quiet image --severity ${SEVERITIES} \
--no-progress \
--ignore-unfixed \
${IMAGE_REPO}/kubernetes:${VERSION}

0 comments on commit 80d0108

Please sign in to comment.