Spaces:
Build error
Build error
File size: 1,043 Bytes
d7563ca |
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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
name: default
steps:
name: tests
image: python:3.11
commands:
python -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install fastapi uvicorn pytest httpx
pytest -q || true
name: lint
image: python:3.11
commands:
pip install flake8
flake8 .
name: build
image: docker:24.0.0
privileged: true
volumes:
name: docker-sock path: /var/run/docker.sock commands:
docker build -t
D
R
O
N
E
R
E
G
I
S
T
R
Y
:
−
r
e
g
i
s
t
r
y
.
e
x
a
m
p
l
e
.
c
o
m
/
m
y
g
e
n
:
{DRONE_COMMIT_SHORT} .
name: push
image: plugins/docker
settings:
dockerfile: Dockerfile
repo:
D
R
O
N
E
R
E
G
I
S
T
R
Y
:
−
r
e
g
i
s
t
r
y
.
e
x
a
m
p
l
e
.
c
o
m
/
m
y
g
e
n
t
a
g
s
:
{DRONE_COMMIT_SHORT}, latest
when:
branch: main
event: push
services:
name: docker image: docker:24.0.0 privileged: true volumes:
name: docker-sock host: path: /var/run/docker.sock
volumes:
name: docker-sock host: path: /var/run/docker.sock |