-
Notifications
You must be signed in to change notification settings - Fork 8
/
.drone.yml
56 lines (55 loc) · 1.12 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
matrix:
PYTHON_VERSION:
- 2.7
- 3.6
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./cache
volumes:
- /cache:/cache
test:
image: python:${PYTHON_VERSION}-slim-jessie
commands:
- pip install -r requirements.txt
- python -m unittest discover -s tests
environment:
- XDG_CACHE_HOME=./cache
- TESTING=true
when:
event: push
publish:
image: plugins/docker
repo: datashaman/wifidog-auth-flask
tags: ${DRONE_COMMIT_BRANCH/master/latest}
volumes:
- /cache:/cache
- /var/run/docker.sock:/var/run/docker.sock
build_args:
- XDG_CACHE_HOME=/cache
environment:
- XDG_CACHE_HOME=/cache
purge: false
privileged: true
when:
event: push
matrix:
PYTHON_VERSION: 3.6
secrets:
- docker_password
- docker_username
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- ./cache
volumes:
- /cache:/cache
notify:
image: plugins/slack
channel: ci
when:
status: [ success, failure ]
secrets: [ slack_webhook ]