From 671da6401f322ba21e1fe6fed2ea82dcb28e2c50 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 7 Oct 2022 14:06:29 +0200 Subject: [PATCH] [DRONE] Rewrite build and publish CI --- .drone.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5ec0584..e9f06d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,10 +19,16 @@ steps: from_secret: 'docker_password' volumes: - - /var/run/docker.sock:/var/run/docker.sock + - name: 'docker_socket' + path: '/var/run/docker.sock' commands: - - 'echo building image ${IMG}' - - 'docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} docker.io' - - 'docker build -t ${IMG}:v0.9 -t ${IMG}:latest -f Dockerfile.linux.amd64 .' - - 'docker push -a' + - 'echo building image ${IMG}' + - 'docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} docker.io' + - 'docker build -t ${IMG}:v0.9 -t ${IMG}:latest -f Dockerfile.linux.amd64 .' + - 'docker push -a' + +volumes: +- name: 'docker_socket' + host: + path: '/var/run/docker.sock'