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
00e70ff628
commit
478c61a69f
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/bkctld/
|
||||||
|
source: /tmp/bkctld/
|
||||||
|
delete: true
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
path: /tmp
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- debian
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
host:
|
||||||
|
path: /tmp
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -2,7 +2,7 @@ Source: bkctld
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Victor Laborie <vlaborie@evolix.fr>
|
Maintainer: Victor Laborie <vlaborie@evolix.fr>
|
||||||
Build-Depends: debhelper (>= 9), dh-exec, pandoc
|
Build-Depends: debhelper (>= 9), dh-exec
|
||||||
Standards-Version: 4.0.0
|
Standards-Version: 4.0.0
|
||||||
|
|
||||||
Package: bkctld
|
Package: bkctld
|
||||||
|
|
5
debian/gbp.conf
vendored
5
debian/gbp.conf
vendored
|
@ -1,4 +1,5 @@
|
||||||
[buildpackage]
|
[buildpackage]
|
||||||
upstream-tree = master
|
upstream-tree = debian
|
||||||
debian-branch = debian
|
debian-branch = debian
|
||||||
builder = sbuild -A -v -d sid
|
export-dir = /tmp/bkctld
|
||||||
|
builder = dpkg-buildpackage -i -I -uc -us
|
||||||
|
|
10
debian/rules
vendored
10
debian/rules
vendored
|
@ -1,14 +1,4 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
DEBIAN_VERSION := $(shell dpkg-parsechangelog| sed -n -e 's/^Version: //p')
|
|
||||||
DEBIAN_DATE := $(shell dpkg-parsechangelog| sed -n -e 's/^Date: //p')
|
|
||||||
|
|
||||||
build:
|
|
||||||
pandoc -f markdown -t man docs/usage.md --template default.man -V title=bkctld -V section=8 -V date="${DEBIAN_DATE}" -V footer="${DEBIAN_VERSION}" -V header="bkctld man page" -o docs/bkctld.8
|
|
||||||
|
|
||||||
override_dh_clean:
|
|
||||||
dh_clean
|
|
||||||
rm -f docs/bkctld.8
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
Loading…
Reference in a new issue