From 8db37c73f75e3bbcee1307b029369c5bf61ce4cd Mon Sep 17 00:00:00 2001 From: kleph Date: Mon, 17 Feb 2020 22:09:48 +0100 Subject: [PATCH] [CI] Use drone plugin to build docker image --- .drone.yml | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index da6f022..5d592c3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,28 +32,38 @@ steps: --- kind: pipeline name: build +# +#steps: +#- name: build image +# image: docker +# environment: +# DOCKER_HOST: tcp://docker +# USERNAME: +# from_secret: dockerhub_username +# PASSWORD: +# from_secret: dockerhub_password +# commands: +# - docker build -t kleph/beer . +# - docker login -u $USERNAME -p $PASSWORD +# - docker image push kleph/beer +# +#services: +#- name: docker +# image: docker:dind +# environment: +# DOCKER_TLS_CERTDIR: "" +# command: ["--storage-driver=vfs", "--tls=false"] +# privileged: true steps: - name: build image - image: docker - environment: - DOCKER_HOST: tcp://docker - USERNAME: + image: plugins/docker + settings: + repo: kleph/beer + username: from_secret: dockerhub_username - PASSWORD: + password: from_secret: dockerhub_password - commands: - - docker build -t kleph/beer . - - docker login -u $USERNAME -p $PASSWORD - - docker image push kleph/beer - -services: -- name: docker - image: docker:dind - environment: - DOCKER_TLS_CERTDIR: "" - command: ["--storage-driver=vfs", "--tls=false"] - privileged: true depends_on: - lint