-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
50 lines (45 loc) · 1.01 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
workspace:
base: /drone
path: ike
pipeline:
build:
image: builder
commands:
- dpkg-buildpackage -us -uc -b
- cd ../
- rm *dbgsym* || true
delivery:
image: appleboy/drone-scp
host:
- 95.213.195.158
username: root
secrets: [ ssh_key ]
target: /root/ikev2
source: ../se-vpn*.deb
rm: true
deploy:
image: appleboy/drone-ssh
host:
- 95.213.195.158
username: root
secrets: [ ssh_key ]
script:
- cd ./ikev2
- vpnserver stop
- rm /etc/debug.txt
- dpkg --remove se-vpnserver || true
# - dpkg -i se-vpncmd*.deb
- dpkg -i se-vpnserver*.deb
- vpnserver start
notify:
image: appleboy/drone-telegram
token: "689517956:AAGkhF9NDf0Hnn0tpDKkDNtDO8KFPoKi4gw"
to:
- 498894
- 254755425
message: >
{{#success build.status}}
Build {{build.number}} ({{commit.sha}}) delivered and ready to tests.
{{else}}
Build {{build.number}} failed. BED BOI.
{{/success}}