From 1f0ccdffe2ae51084f919a511a7e72cd8ce1152e Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Mon, 3 Jul 2023 00:01:08 +0200 Subject: [PATCH] fix(): Mounts docker socket --- .drone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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: