From dfdbce74fa08cc9a83a2f3703eb039901bbb7e56 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Wed, 22 May 2019 11:48:27 +0200 Subject: [PATCH 1/2] Only auto deploy with DroneCI for master branch --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 109941c..7914b65 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,3 +14,6 @@ steps: source: pages/ exclude: [".git", ".drone.yml"] delete: true + when: + branch: + - master From 737d6b96dde273c258ad5874b01695a1354f57db Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Wed, 22 May 2019 12:12:20 +0200 Subject: [PATCH 2/2] Add DroneCI config for auto build Debian package --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7914b65..2cd04d0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,3 +17,39 @@ steps: when: branch: - master + +- name: build debian package + image: evolix/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/errors-pages/ + source: /tmp/errors-pages/ + delete: true + volumes: + - name: tmp + path: /tmp + when: + branch: + - debian + +volumes: +- name: tmp + temp: {}