-
Notifications
You must be signed in to change notification settings - Fork 9
/
.drone.yml
55 lines (55 loc) · 1.28 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
pipeline:
build:
image: plugins/docker
secrets: [docker_username, docker_password]
registry: dev.enecuum.com:2087
repo: dev.enecuum.com:2087/testnet/node
tags: latest
when:
branch:
- master
event:
- push
- tag
notify-build:
image: dev.enecuum.com:2087/library/drone-telegram:v1.0.0
secrets: [telegram_token, telegram_id]
when:
branch:
- master
status:
- success
- failure
event:
- push
- tag
deploy:
image: dev.enecuum.com:2087/testnet/testnet-master:latest
when:
branch:
- master
status:
- success
event:
- push
- tag
notify-deploy:
image: dev.enecuum.com:2087/library/drone-telegram:v1.0.0
secrets: [telegram_token, telegram_id]
message: \u2705 ${DRONE_REPO}:`${DRONE_COMMIT_BRANCH}` ${DRONE_BUILD_NUMBER} deployment successful
when:
branch:
- master
status:
- success
event:
- push
- tag
notify-pr:
image: dev.enecuum.com:2087/library/drone-telegram:v1.0.0
secrets: [telegram_token, telegram_id]
message: \u2757 PR ${DRONE_REPO_LINK}/pull/${DRONE_PULL_REQUEST}
when:
branch:
- master
event: pull_request