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