From 42edca576c305834771be364e351bf5a4b89431e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 23 Jan 2020 14:09:40 +0100 Subject: [PATCH] dind --- .drone.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 845e6d9..0e8cddf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,13 +15,28 @@ steps: - name: build image: docker:stable-dind + volumes: + - name: dockersock + path: /var/run environment: DOCKER_USERNAME: from_secret: DOCKER_USERNAME DOCKER_PASSWORD: from_secret: DOCKER_PASSWORD commands: - - dockerd & + - sleep 5 - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com - docker build -t="registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER" . && docker push "registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER" - docker build -t="registry.kmlabz.com/$DRONE_REPO" . && docker push "registry.kmlabz.com/$DRONE_REPO" + +services: +- name: docker + image: docker:stable-dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: +- name: dockersock + temp: {}