-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
62 lines (57 loc) · 1.58 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
pipeline:
hugo-check:
image: nossas/bonde-docs
commands:
- hugo check
when:
event: [push, tag]
staging-publish:
image: plugins/docker
repo: nossas/bonde-docs
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_BRANCH/\//-}
when:
status: success
branch: [hotfix/*, release/*, feature/*, develop]
staging-deploy-bonde-docs:
image: peloton/drone-rancher
group: deploying
url: http://cluster.bonde.org
service: webservers/docs
docker_image: nossas/bonde-docs:${DRONE_BRANCH/\//-}
timeout: 360
confirm: true
secrets: [ rancher_access_key, rancher_secret_key ]
when:
status: success
branch: [hotfix/*, release/*, feature/*, develop]
production-publish:
image: plugins/docker
repo: nossas/bonde-docs
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_TAG##v}
when:
status: success
branch: tag
production-deploy-bonde-docs:
image: peloton/drone-rancher
group: deploying_prod
url: http://cluster.bonde.org
service: webservers/docs
docker_image: "nossas/bonde-docs:${DRONE_TAG##v}"
timeout: 360
confirm: true
secrets: [ rancher_access_key, rancher_secret_key ]
when:
status: success
branch: tag
notify:
image: plugins/slack
webhook: https://hooks.slack.com/services/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
channel: bonde_bots
username: CI - ${DRONE_REPO_NAME}
when:
event: [ push, tag, build, publish, deployment, pull_request ]
status: [ success, failure ]