From f5d9c4738ee05a5eea7d96c5b24075d7db721725 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Thu, 28 Mar 2019 14:28:18 +0100 Subject: [PATCH] Add a DroneCI config file for automatic build --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2c51b50 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +kind: pipeline +name: default + +steps: +- name: build debian package + image: vlaborie/gbp:latest + branches: + - debian + commands: + - mk-build-deps --install --remove debian/control + - gbp buildpackage + volumes: + - name: tmp + path: /tmp + when: + branch: + - debian + +- name: upload debian package + image: drillster/drone-rsync + settings: + hosts: ["pub.evolix.net"] + port: 22 + user: droneci + key: + from_secret: drone_private_key + target: /home/droneci/evoadmin-mail/ + source: /tmp/evoadmin-mail/ + delete: true + volumes: + - name: tmp + path: /tmp + when: + branch: + - debian + +volumes: +- name: tmp + host: + path: /tmp