From bf8b21dc07a80f4f003acbbe3181683c4e86e7b3 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Fri, 6 Jul 2018 19:33:08 +0200 Subject: [PATCH] update .drone.yml --- .drone.yml | 45 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5320de7..65a08d2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,31 +6,54 @@ # - master pipeline: + restore_cache: + image: drillster/drone-volume-cache:latest + restore: true + mount: + - /drone/docker + # Set the ``DRONE_VOLUME=/tmp/drone-cache:/cache`` drone-server variable, + # so you can benefit from the caching. + # Otherwise you will have to make this repository trusted in Drone and use + # the volumes as follows. + # volumes: + # - /tmp/drone-cache:/cache + publish: image: plugins/docker:17.12 - auto_tag: true - auto_tag_suffix: linux-amd64 - repo: andrey01/hipchat - # tags: - # - latest - # - 1 - # - 1.1 + repo: andrey01/${DRONE_REPO_NAME} + tags: + - latest + - ${DRONE_COMMIT_SHA:0:7} # group: docker # dockerfile: Dockerfile - secrets: [ docker_username, docker_password ] + secrets: [docker_username, docker_password] + # Since we restore the docker image cache to /drone/docker + storage_path: /drone/docker + use_cache: true when: event: [push, tag] branch: master + rebuild_cache: + image: drillster/drone-volume-cache:latest + rebuild: true + mount: + - /drone/docker + # Set the ``DRONE_VOLUME=/tmp/drone-cache:/cache`` drone-server variable, + # so you can benefit from the caching. + # Otherwise you will have to make this repository trusted in Drone and use + # the volumes as follows. + # volumes: + # - /tmp/drone-cache:/cache + notify: image: drillster/drone-email:latest from: Drone CI - # from: drone-noreply@nixaid.com + subject: NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification host: mail.nixaid.com port: 587 # username: arno - subject: NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification - # secrets: [ EMAIL_USERNAME, EMAIL_PASSWORD ] + # secrets: [ email_username, email_password ] # recipients: [ andrey.arapov@nixaid.com ] when: status: [success, failure] # changed