diff --git a/.drone.yml b/.drone.yml index b00e48e..4b2e6b5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,12 +40,20 @@ steps: - name: trivy-scan image: docker.io/aquasec/trivy:latest + volumes: + - name: dockersock + path: /var/run/docker.sock 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 +volumes: +- name: dockersock + host: + path: /var/run/docker.sock + - name: build-container image: plugins/docker settings: