test(): Testing with Trivy container scanning
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e68cb7d123
commit
8486d82f46
1 changed files with 9 additions and 0 deletions
|
@ -34,9 +34,18 @@ steps:
|
||||||
repo: scm.project42.io/elia/blog
|
repo: scm.project42.io/elia/blog
|
||||||
dry_run: true
|
dry_run: true
|
||||||
squash: true
|
squash: true
|
||||||
|
purge: false
|
||||||
tags:
|
tags:
|
||||||
- "${DRONE_COMMIT_SHA:0:8}"
|
- "${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
|
||||||
|
- name: trivy-scan
|
||||||
|
image: docker.io/aquasec/trivy:latest
|
||||||
|
commands:
|
||||||
|
- trivy image --exit-code 0 "scm.project42.io/elia/blog:${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
- trivy image --exit-code 1 --severity CRITICAL "scm.project42.io/elia/blog:${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
depends_on:
|
||||||
|
- test-build-container
|
||||||
|
|
||||||
- name: build-container
|
- name: build-container
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Reference in a new issue