From c4ca7ca23c4b63251cbd7e559d90426d5a21980c Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 7 Oct 2022 14:31:01 +0200 Subject: [PATCH] [CI] Move runner back to docker --- .drone.yml | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index f6ff552..2148140 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,27 +1,31 @@ --- kind: 'pipeline' name: 'build' -type: 'kubernetes' steps: - # build and publish - - image: 'docker.io/library/docker' - name: 'publish' - pull: 'always' - privileged: true +# build and publish +- image: 'plugins/docker' + name: 'publish' + pull: 'always' + settings: - volumes: - - name: 'docker_socket' - path: '/var/run/docker.sock' + # registery and repos + registry: 'docker.io' + cache_from: 'rakepanorama/ansible-deployment' + repo: 'rakepanorama/ansible-deployment' - commands: - - 'echo building image ${IMG}' - - 'docker login -u rakepanorama --password=8qE9RvDSFt2KNfyQ docker.io' - - 'docker build -t rakepanorama/ansible-deployment-container:v0.9 -t rakepanorama/ansible-deployment-container:latest -f Dockerfile.linux.amd64 .' - - 'docker push -a' + # build stuff + dockerfile: 'Dockerfile.linux.amd64' + daemon_off: 'false' -volumes: -- name: 'docker_socket' - host: - path: '/var/run/docker.sock' + # authentication + username: + from_secret: 'docker_username' + password: + from_secret: 'docker_password' + + # tags + tags: + - 'v0.9' + - 'latest'