-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
71 lines (60 loc) · 1.17 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
kind: pipeline
type: ssh
name: 部署微服务-通知中心
server:
host:
from_secret: ssh_host
user: root
ssh_key:
from_secret: ssh_key
platform:
os: linux
arсh: amd64
clone:
disable: true
steps:
- name: clone
commands:
- git config --global http.proxy http://127.0.0.1:7890
- git config --global https.proxy http://127.0.0.1:7890
- git clone https://github.com/ZhuLegend/321CQU_Notification_Center.git
- cd ./321CQU_Notification_Center/
- git checkout main
- name: 新建镜像
commands:
- cd ./321CQU_Notification_Center/
- docker-compose build
- docker-compose up -d
- docker image prune -f
depends_on:
- clone
trigger:
branch:
- main
event:
- push
- merge
---
kind: pipeline
type: docker
name: 通知
clone:
disable: true
steps:
- name: 钉钉通知
image: lddsb/drone-dingtalk-message
settings:
token:
from_secret: dingtalk_token
secret:
from_secret: dingtalk_sign
type: markdown
message_color: true
message_pic: true
sha_link: true
when:
status:
- success
- failure
depends_on:
- 部署微服务-通知中心