-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.drone.yml
45 lines (40 loc) · 1.18 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
---
kind: pipeline
type: exec
name: default
concurrency:
limit: 1
clone:
disable: true
steps:
- name: refresh
commands:
- eval `ssh-agent -s`
- ssh-add /home/dreamland/.ssh/drone
- cd /home/dreamland/runtime/share/DL
- git add .
- git commit -m 'Latest changes from hosting' || echo 'No changes to commit'
- git pull --rebase
- git push
- kill -9 $SSH_AGENT_PID
- name: discord_failure
commands:
- >
echo "{\"embeds\":[{\"color\": 13632027,\"description\":\"Latest dreamland_world failed to merge, please resolve conflicts to continue\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_world pulled successfully, reload plugins to apply\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