-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
53 lines (47 loc) · 1.1 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: python:2
commands:
- echo "Buliding..."
publish:
docker:
repo: $$DOCKER_USERNAME/$$DOCKER_REPO
tag: "$${BRANCH##feature/}"
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
load: /drone/.docker/cake.tar
save:
destination: /drone/.docker/cake.tar
tag: $${BRANCH##feature/}
docker:
repo: $$DOCKER_USERNAME/$$DOCKER_REPO
tag: "latest"
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
load: /drone/.docker/cake.tar
save:
destination: /drone/.docker/cake.tar
tag: latest
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
cache:
mount:
- /drone/.docker/cake.tar