forked from dreamland-mud/dreamland_code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
48 lines (43 loc) · 1.23 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
---
kind: pipeline
type: exec
name: default
concurrency:
limit: 1
clone:
disable: true
steps:
- name: full_rebuild
commands:
- eval `ssh-agent -s`
- ssh-add /home/dreamland/.ssh/drone
- cd /home/dreamland/dreamland_code
- git pull
- kill -9 $SSH_AGENT_PID
- make -f Makefile.git
- cd ../objs
- ../dreamland_code/configure --prefix=/home/dreamland/runtime
- rm plug-ins/*/lib*cpp plug-ins/*/*/lib*cpp
- make -j 2
- make install
- name: discord_failure
commands:
- >
echo "{\"embeds\":[{\"color\": 13632027,\"description\":\"Latest dreamland_code failed to build, what have you done, mate?\n\",\"title\":\"Deployment failed!\"}], \"username\":\"Drone Bot\", \"avatar_url\": \"https://docs.drone.io/logo.svg\"}" \
| /home/dreamland/runtime/bin/idiscord-code
when:
status:
- failure
- name: discord_success
commands:
- >
echo "{\"embeds\":[{\"color\": 8311585,\"description\":\"Latest dreamland_code build was successful, you can reboot\n\",\"title\":\"Deployment successful\"}], \"username\":\"Drone Bot\", \"avatar_url\": \"https://docs.drone.io/logo.svg\"}" \
| /home/dreamland/runtime/bin/idiscord-code
when:
status:
- success
trigger:
branch:
- master
event:
- push