forked from evolix/evobackup
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.
This commit is contained in:
parent
ff02816538
commit
12e8d79d1c
41
.drone.yml
Normal file
41
.drone.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue