/
.drone.yml
52 lines (47 loc) · 1.11 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
build:
image: node:5
commands:
- echo "Building..."
publish:
docker:
repo: $$DOCKER_USERNAME/$$DOCKER_REPO
tag: "$${BRANCH##feature/}"
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
docker:
repo: $$DOCKER_USERNAME/$$DOCKER_REPO
tag: "latest"
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
when:
branch: "master"
deploy:
webhook:
image: plugins/drone-webhook
skip_verify: true
method: POST
auth:
username: $$MANTL_USERNAME
password: $$MANTL_PASSWORD
urls:
- https://$$MANTL_CONTROL/marathon/v2/apps/$$BRANCH/$$MANTL_APP_NAME/restart?force=true
when:
branch: "!master"
webhook:
image: plugins/drone-webhook
skip_verify: true
method: POST
auth:
username: $$MANTL_USERNAME
password: $$MANTL_PASSWORD
urls:
- https://$$MANTL_CONTROL/marathon/v2/apps/$$MANTL_APP_NAME_DEV/restart?force=true
when:
branch: "dev"
notify:
spark:
image: hpreston/drone-spark
auth_token: $$SPARK_TOKEN
roomId: $$SPARK_ROOM