-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
40 lines (37 loc) · 1.02 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
pipeline:
test:
image: node:latest
commands:
- npm i
- npm test
when:
event: [push, tag]
publish:
image: plugins/docker
repo: nossas/bonde-maquinista
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_BRANCH}
when:
status: success
branch: [hotfix-*, release-*, feature-*, develop]
deploy:
image: peloton/drone-rancher
group: concurrent
url: http://cluster.bonde.org
service: partners/bonde-maquinista
docker_image: nossas/bonde-maquinista:${DRONE_BRANCH}
timeout: 360
confirm: true
secrets: [ rancher_access_key, rancher_secret_key ]
when:
status: success
branch: [hotfix-*, release-*, feature-*, develop]
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 ]