This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.drone.yml
75 lines (68 loc) · 1.94 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
69
70
71
72
73
74
75
pipeline:
build:
image: node:latest
commands:
- yarn
- ./node_modules/.bin/lerna bootstrap
when:
event: [push, tag]
npm-auth:
image: robertstettner/drone-npm-auth
secrets: [npm_username, npm_password, npm_email]
when:
status: success
event: tag
npm-publish:
image: node:latest
commands:
- ./node_modules/.bin/lerna publish --repo-version=${DRONE_TAG##v} --skip-git --yes
when:
status: success
event: tag
staging-docker-publish:
image: plugins/docker
repo: nossas/slate-editor
secrets: [docker_username, docker_password]
tags:
- ${DRONE_BRANCH/\//-}
when:
status: success
branch: [feature/*, release/*, hotfix/*, support/*, develop]
staging-rancher-deploy:
image: peloton/drone-rancher
url: http://cluster.bonde.org
service: staging/slate-editor
docker_image: nossas/slate-editor:${DRONE_BRANCH/\//-}
timeout: 360
confirm: true
secrets: [rancher_access_key, rancher_secret_key]
when:
status: success
branch: [feature/*, release/*, hotfix/*, support/*, develop]
production-docker-publish:
image: plugins/docker
repo: nossas/slate-editor
secrets: [docker_username, docker_password]
tags: "${DRONE_TAG}"
when:
status: success
event: tag
production-rancher-deploy:
image: peloton/drone-rancher
url: http://cluster.bonde.org
service: partners/slate-editor
docker_image: nossas/slate-editor:${DRONE_TAG=$DRONE_BRANCH}
timeout: 360
confirm: true
secrets: [rancher_access_key, rancher_secret_key]
when:
status: success
event: 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]