add clair image scan
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Andreas Neue 2019-08-02 11:02:33 +02:00
parent 2752d85903
commit 93060b3181
1 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,7 @@ kind: pipeline
name: default name: default
steps: steps:
- name: prebuild - name: build
image: golang:latest image: golang:latest
commands: commands:
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME - IMAGE=dr.dnix.de/$DRONE_REPO_NAME
@ -26,6 +26,8 @@ steps:
- echo "\"" >>$VERSIONGO - echo "\"" >>$VERSIONGO
- echo ")" >>$VERSIONGO - echo ")" >>$VERSIONGO
- cat $VERSIONGO - cat $VERSIONGO
- go build
- go test
- echo -n "$BRANCH-$REV" >$TAGS - echo -n "$BRANCH-$REV" >$TAGS
- name: docker - name: docker
@ -35,3 +37,8 @@ steps:
registry: dr.dnix.de registry: dr.dnix.de
auto_tag: true auto_tag: true
tags: latest tags: latest
- name: clair
image: jmccann/drone-clair:1
url: http://dev01:6060
scan_image: dr.dnix.de/flokati