forked from keymetrics/doc-pm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
34 lines (34 loc) · 1.06 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
pipeline:
build:
image: plugins/docker
repo: keymetrics/pm2-docs
tags: latest
secrets: [ docker_username, docker_password ]
when:
event: push
branch: [ master ]
deploy:
image: peloton/drone-rancher
url: https://rancher.keymetrics.io
service: pm2-io/docs
docker_image: keymetrics/pm2-docs
confirm: true
secrets: [ rancher_access_key, rancher_secret_key ]
when:
event: push
branch: [ master ]
slack:
image: plugins/slack
channel: ci
when:
event: push
branch: [ master ]
status: [ success, failure ]
template: |
{{#success build.status}}
{{repo.name}} : {{build.event}} with commit {{truncate build.commit 8}} on branch "{{build.branch}}" done by {{build.author}} succeeded in {{since build.started}}
{{else}}
{{repo.name}} : {{build.event}} with commit {{truncate build.commit 8}} on branch "{{build.branch}}" done by {{build.author}} failed in {{since build.started}}
{{/success}}
see {{ build.link }}
secrets: [ slack_webhook ]