Browse Source

Add a DroneCI config file for automatic build

tags/1.0.5
Victor Laborie 3 months ago
parent
commit
f5d9c4738e
1 changed files with 40 additions and 0 deletions
  1. 40
    0
      .drone.yml

+ 40
- 0
.drone.yml View File

@@ -0,0 +1,40 @@
1
+kind: pipeline
2
+name: default
3
+
4
+steps:
5
+- name: build debian package
6
+  image: vlaborie/gbp:latest
7
+  branches:
8
+  - debian
9
+  commands:
10
+  - mk-build-deps --install --remove debian/control
11
+  - gbp buildpackage
12
+  volumes:
13
+  - name: tmp
14
+    path: /tmp
15
+  when:
16
+    branch:
17
+    - debian
18
+
19
+- name: upload debian package
20
+  image: drillster/drone-rsync
21
+  settings:
22
+    hosts: ["pub.evolix.net"]
23
+    port: 22
24
+    user: droneci
25
+    key:
26
+      from_secret: drone_private_key
27
+    target: /home/droneci/evoadmin-mail/
28
+    source: /tmp/evoadmin-mail/
29
+    delete: true
30
+  volumes:
31
+  - name: tmp
32
+    path: /tmp
33
+  when:
34
+    branch:
35
+    - debian
36
+
37
+volumes:
38
+- name: tmp
39
+  host:
40
+    path: /tmp

Loading…
Cancel
Save