generated from goexl/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
95 lines (79 loc) · 1.49 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
kind: secret
name: token_github
get:
path: secrets
name: token_github_storezhang
---
kind: secret
name: id_feishu
get:
path: secrets
name: id_feishu
---
kind: secret
name: secret_feishu
get:
path: secrets
name: secret_feishu
---
kind: pipeline
type: docker
name: 发布
clone:
disable: true
environment:
CHANGELOG_TAG_OUTPUT: CHANGELOG.tag.md
steps:
- name: 代码
image: ccr.ccs.tencentyun.com/dronestock/git
pull: always
- name: 编译
image: ccr.ccs.tencentyun.com/pangum/drone
pull: always
volumes:
- name: go
path: /var/lib/go
settings:
compress:
enabled: false
- name: 改变
image: ccr.ccs.tencentyun.com/dronestock/changelog
pull: always
when:
event:
- tag
settings:
output: $${CHANGELOG_TAG_OUTPUT}
tag: $${DRONE_TAG}
- name: 发布
image: ccr.ccs.tencentyun.com/dronestock/github
pull: always
when:
event:
- tag
environment:
TOKEN:
from_secret: token_github
settings:
release:
tag: $${DRONE_TAG}
token: $${TOKEN}
body: file('$${CHANGELOG_TAG_OUTPUT}')
- name: 通知
image: ccr.ccs.tencentyun.com/dronestock/feishu
pull: always
when:
status:
- success
- failure
settings:
id:
from_secret: id_feishu
secret:
from_secret: secret_feishu
notfound:
id: storezhang
volumes:
- name: go
host:
path: /var/lib/cache/go