From 0e5c4b64456b6a0f845fbda4d0a22c949c5205cf Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sat, 11 May 2019 17:41:55 +0200 Subject: [PATCH] add Drone CI --- .drone.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..58d8afb4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +--- +kind: pipeline +name: default + +platform: + os: linux + arch: amd64 + +steps: +- name: publish + pull: default + image: plugins/docker:18.09 + settings: + registry: https://registry.nixaid.com + repo: "registry.nixaid.com/${DRONE_REPO_NAMESPACE}/${DRONE_REPO_NAME}" + tags: + - latest + username: + from_secret: docker_username + password: + from_secret: docker_password + # storage_path: /drone/docker + # storage_driver: aufs + # ipv6: false + # debug: true + when: + branch: + - master + event: + - push + - tag + +- name: notify + pull: default + image: drillster/drone-email:latest + settings: + from: "Drone CI " + host: mx.nixaid.com + port: 587 + subject: "NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification" + when: + event: + - push + - tag + status: + - success + - failure