fix(): Mounts docker socket
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is failing

This commit is contained in:
Elia el Lazkani 2023-07-03 00:01:08 +02:00
parent 8486d82f46
commit 1f0ccdffe2

View file

@ -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: