forked from hpreston/drone-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
41 lines (37 loc) · 821 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:
build:
image: python:2
commands:
- echo "Build Phase"
publish:
docker:
repo: $$DOCKER_REPO
tag: "$${BRANCH##feature/}"
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
docker:
repo: $$DOCKER_REPO
tag: "latest"
username: $$DOCKER_USERNAME
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
when:
branch: "master"
notify:
spark:
image: 3pings/drone-spark:latest
pull: true
auth_token: $$SPARK_TOKEN
roomName: "$$SPARK_ROOM_NAME"
message: "Great Job!!!"
when:
success: true
spark:
image: 3pings/drone-spark:latest
pull: true
auth_token: $$SPARK_TOKEN
roomName: "$$SPARK_ROOM_NAME"
message: "Poor form... you should be ashamed..."
when:
success: false