use volume
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2020-08-06 22:59:13 +02:00
parent ce28b94c50
commit 4b95933662
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,8 @@ steps:
- name: docker
image: docker
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- name: docker_sock
path: /var/run/docker.sock
commands:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
- docker build -t registry.kmlabz.com/$DRONE_REPO .
@ -21,3 +22,8 @@ steps:
from_secret: TEAMS_WEBHOOK
when:
status: [ failure ]
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock