-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.drone.yml
More file actions
80 lines (79 loc) · 1.71 KB
/
Copy path.drone.yml
File metadata and controls
80 lines (79 loc) · 1.71 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
kind: pipeline
name: default
steps:
- name: test
image: python:3.8.0-alpine3.10
commands:
- pip3 install --upgrade pip setuptools wheel pytest hypothesis
- pip3 install .
- pytest dotscience
- name: pypi_publish
image: plugins/pypi
when:
event: [ tag ]
depends_on:
- test
settings:
username:
from_secret: pypi_username
password:
from_secret: pypi_password
- name: docker-publish
image: plugins/docker
when:
event: [ push ]
depends_on:
- test
settings:
repo: quay.io/dotmesh/dotscience-python3
registry: quay.io
dockerfile: Dockerfile
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_BRANCH}
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: docker-publish-tag
image: plugins/docker
when:
event: [ tag ]
settings:
repo: quay.io/dotmesh/dotscience-python3
registry: quay.io
dockerfile: Dockerfile
tags:
- ${DRONE_TAG}
- latest
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: slack
image: plugins/slack
when:
event: [ push, pull_request ]
status: [ success, failure ]
depends_on:
- docker-publish
settings:
webhook:
from_secret: slack_url
channel: ci
username: drone
icon_url: https://i.pinimg.com/originals/51/29/a4/5129a48ddad9e8408d2757dd10eb836f.jpg
- name: slack-tag
image: plugins/slack
when:
event: [ tag ]
status: [ success, failure ]
depends_on:
- docker-publish-tag
- pypi_publish
settings:
webhook:
from_secret: slack_url
channel: ci
username: drone
icon_url: https://i.pinimg.com/originals/51/29/a4/5129a48ddad9e8408d2757dd10eb836f.jpg