-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
53 lines (49 loc) · 1.26 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
50
51
52
53
kind: pipeline
type: ssh
name: update-config
clone:
disable: true
server:
host:
from_secret: unraid-ssh-host
user:
from_secret: unraid-ssh-user
password:
from_secret: unraid-ssh-pwd
steps:
- name: 更新配置
commands:
- cd /mnt/user/appdata/homelab-traefik
- sleep 5
- git pull
---
kind: pipeline
type: docker
name: notice
clone:
disable: true
depends_on:
- update-config
trigger:
status:
- failure
steps:
- name: 通知
image: yakumioto/drone-serverchan
pull: if-not-exists
failure: ignore
settings:
key:
from_secret: serverchan-key
text: "🔨**${DRONE_REPO_NAME}** ${DRONE_BUILD_STATUS}"
desp: |
| 项目名称 | **${DRONE_REPO_NAME}**|
|--------------|--------------------------------------|
| 实时状态 | |
| 当前状态 | **${DRONE_BUILD_STATUS}** |
| 项目地址 | [跳转到GIT仓库](${DRONE_REPO_LINK}) |
| 构建日志 | [跳转到DroneCI](${DRONE_BUILD_LINK}) |
| 构建ID | ${DRONE_BUILD_NUMBER} |
| 当前分支 | ${DRONE_COMMIT_BRANCH} |
| 当前提交信息 | ${DRONE_COMMIT_MESSAGE} |
...