Use DroneCI for auto build deb package
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ef4fb9afa4
commit
c933b23f69
40
.drone.yml
Normal file
40
.drone.yml
Normal 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
3
debian/gbp.conf
vendored
|
@ -1,4 +1,5 @@
|
||||||
[buildpackage]
|
[buildpackage]
|
||||||
upstream-tree = debian
|
upstream-tree = debian
|
||||||
debian-branch = debian
|
debian-branch = debian
|
||||||
builder = sbuild -A -v -d sid
|
export-dir = /tmp/kvm-tools
|
||||||
|
builder = dpkg-buildpackage -i -I -uc -us
|
||||||
|
|
Loading…
Reference in a new issue