From 12e8d79d1cf3bdceeeb47ca5327f00576e88c991 Mon Sep 17 00:00:00 2001 From: David Prevot Date: Tue, 3 May 2022 14:54:21 +0200 Subject: [PATCH] Include CI upstream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current build is limited to the debian branch (so it’s a no-op), but CI should be extended to more than building packages. Furthermore, providing files outside debian/ on a debian branch is going to confuse gbp otherwise. --- .drone.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8adfa19 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,41 @@ +kind: pipeline +name: default + +steps: +- name: build debian package + image: evolix/gbp:latest + branches: + - debian + commands: + - mk-build-deps --install --remove debian/control + - git clean --force + - 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/bkctld/ + source: /tmp/bkctld/ + delete: true + volumes: + - name: tmp + path: /tmp + when: + branch: + - debian + +volumes: +- name: tmp + host: + path: /tmp