From 27cb201d740688537f1b458d945c613f916aefd6 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 7 Oct 2022 14:04:18 +0200 Subject: [PATCH] [DRONE] Rewrite build and publish CI --- .drone.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5fd2ded..5bf8d82 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,24 +5,24 @@ type: 'kubernetes' steps: -# build and publish -- name: 'publish' - image: 'docker.io/library/docker' - pull: 'always' - privileged: true + # build and publish + - name: 'publish' + image: 'docker.io/library/docker' + pull: 'always' + privileged: true - environment: - IMG: 'rakepanorama/ansible-deployment-container' - DOCKER_USER: - from_secret: 'docker_username' - DOCKER_PASS: - from_secret: 'docker_password' + environment: + IMG: 'rakepanorama/ansible-deployment-container' + DOCKER_USER: + from_secret: 'docker_username' + DOCKER_PASS: + from_secret: 'docker_password' - volumes: - - /var/run/docker.sock:/var/run/docker.sock + volumes: + - /var/run/docker.sock:/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' + 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'