Add Drone configuration
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-02-09 19:55:42 +02:00 committed by Lauri Võsandi
parent ab0a8f8cfd
commit 197e4bcbab
2 changed files with 20 additions and 1 deletions

17
.drone.yml Normal file
View File

@ -0,0 +1,17 @@
---
kind: pipeline
type: kubernetes
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: harbor.k-space.ee/${DRONE_REPO}
registry: harbor.k-space.ee
mtu: 1300
squash: true
username:
from_secret: docker_username
password:
from_secret: docker_password

View File

@ -1,4 +1,6 @@
FROM python
FROM python:alpine
RUN apk add --no-cache gcc make musl-dev linux-headers
RUN pip install motor sanic sanic-prometheus sanic_wtf
RUN apk del gcc make musl-dev linux-headers
ADD lease.py /
CMD /lease.py