forked from ekeih/OmNomNom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
57 lines (57 loc) · 1.4 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
57
pipeline:
run_tests:
image: python:3.6-alpine
commands:
- apk add --update gcc musl-dev libmagic poppler-utils
- pip install -r requirements-dev.txt
- mkdir logs
- tox
secrets: [ omnomnom_auth_token, omnomnom_admin ]
when:
event: [ push, tag ]
build_python_package:
image: python:3.6-alpine
commands:
- python setup.py bdist_wheel
when:
event: [ push, tag ]
build_docs:
image: python:3.6-alpine
commands:
- apk add --update gcc musl-dev make
- pip install -r requirements.txt -r docs/requirements.txt
- cd docs && make html
secrets: [ omnomnom_auth_token, omnomnom_admin ]
when:
event: tag
build_docs_docker_image:
image: plugins/docker
repo: ekeih/omnomnom-docs
secrets: [ docker_username, docker_password ]
context: docs
dockerfile: docs/Dockerfile
when:
event: tag
build_docker_image:
image: plugins/docker
repo: ekeih/omnomnom
secrets: [ docker_username, docker_password ]
tag: ${DRONE_BRANCH}
when:
event: push
push_github_release:
image: plugins/github-release
secrets: [ github_token ]
files: dist/*
checksum:
- md5
- sha1
- sha256
- sha512
when:
event: tag
telegram_hook:
image: appleboy/drone-telegram
secrets: [ telegram_token, telegram_to ]
when:
status: [ success, failure ]