-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
68 lines (68 loc) · 1.7 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
pipeline:
build-prod:
image: plugins/docker
secrets: [docker_username, docker_password]
registry: dev.enecuum.com:2087
repo: dev.enecuum.com:2087/explorer/block
tags: latest
build_args:
- API_URL=ws://genesis-bootstrap.enecuum.com:1554
- APP=https://app.enecuum.com
when:
branch:
- master
event:
- push
- tag
notify-build-prod:
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-prod:
image: peloton/drone-rancher
url: https://testnet.enecuum.com:2096
secrets:
- source: rancher_access_key
target: PLUGIN_ACCESS_KEY
- source: rancher_secret_key
target: PLUGIN_SECRET_KEY
docker_image: dev.enecuum.com:2087/explorer/block:latest
service: explorer/block-prod
confirm: true
timeout: 180
when:
branch:
- master
status:
- success
event:
- push
- tag
notify-deploy-prod:
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} production 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