Add a DroneCI config file for automatic build
This commit is contained in:
parent
bbd55a2e67
commit
f5d9c4738e
|
@ -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/evoadmin-mail/
|
||||||
|
source: /tmp/evoadmin-mail/
|
||||||
|
delete: true
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
path: /tmp
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- debian
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
host:
|
||||||
|
path: /tmp
|
Loading…
Reference in New Issue