use volume
Some checks failed
continuous-integration/drone/push Build is failing

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

View File

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