-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
41 lines (36 loc) · 851 Bytes
/
.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
build:
image: python:2
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"
notify:
spark:
image: hpreston/drone-spark
roomId: $$SPARK_ROOM
auth_token: $$SPARK_TOKEN