Use DroneCI for auto build deb package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Victor LABORIE 2019-02-26 15:19:21 +01:00
parent ef4fb9afa4
commit c933b23f69
2 changed files with 42 additions and 1 deletions

40
.drone.yml Normal file
View file

@ -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/kvm-tools/
source: /tmp/kvm-tools/
delete: true
volumes:
- name: tmp
path: /tmp
when:
branch:
- debian
volumes:
- name: tmp
host:
path: /tmp

3
debian/gbp.conf vendored
View file

@ -1,4 +1,5 @@
[buildpackage]
upstream-tree = debian
debian-branch = debian
builder = sbuild -A -v -d sid
export-dir = /tmp/kvm-tools
builder = dpkg-buildpackage -i -I -uc -us