-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
49 lines (44 loc) · 977 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
42
43
44
45
46
47
48
49
---
clone:
git:
image: quay.io/packet/drone-git
# matrix:
# PYTHON_VERSION:
# - 3.5
# - 3.6
# - 3.7
# - 3.8
pipeline:
fmt_and_lint:
image: python:3.8-alpine
commands:
- pip install black==19.3b0 pylama
- black --check --diff .
- pylama src setup.py
# test:
# image: python:${PYTHON_VERSION}
# commands:
# - pip install tox
# - tox -e py$(echo ${PYTHON_VERSION} | sed 's|\.||')
publish-image:
group: publish
image: plugins/docker
registry: quay.io
repo: quay.io/packet/discover-metal
tags:
- ${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_SHA}
secrets: [docker_username, docker_password]
when:
branch: main
event: push
publish-image-latest:
group: publish
image: plugins/docker
registry: quay.io
repo: quay.io/packet/discover-metal
tags:
- ${DRONE_TAG}
- latest
secrets: [docker_username, docker_password]
when:
event: tag