diff --git a/.drone.yml b/.drone.yml index c29cd13..91e7deb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -50,8 +50,10 @@ steps: - name: dockersock path: /var/run/docker.sock commands: + - docker build -t "scm.project42.io/elia/blog:${DRONE_COMMIT_SHA:0:8}" . - 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}" + - docker rmi "scm.project42.io/elia/blog:${DRONE_COMMIT_SHA:0:8}" depends_on: - test-build-container