From 93060b3181b6a1851a953480df899cf1808c167d Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Fri, 2 Aug 2019 11:02:33 +0200 Subject: [PATCH] add clair image scan --- .drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c544c45..b5b259b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,7 +2,7 @@ kind: pipeline name: default steps: - - name: prebuild + - name: build image: golang:latest commands: - IMAGE=dr.dnix.de/$DRONE_REPO_NAME @@ -26,6 +26,8 @@ steps: - echo "\"" >>$VERSIONGO - echo ")" >>$VERSIONGO - cat $VERSIONGO + - go build + - go test - echo -n "$BRANCH-$REV" >$TAGS - name: docker @@ -35,3 +37,8 @@ steps: registry: dr.dnix.de auto_tag: true tags: latest + + - name: clair + image: jmccann/drone-clair:1 + url: http://dev01:6060 + scan_image: dr.dnix.de/flokati