Add Drone configuration

master
Lauri Võsandi 1 year ago committed by Lauri Võsandi
parent ab0a8f8cfd
commit 197e4bcbab
  1. 17
      .drone.yml
  2. 4
      Dockerfile

@ -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

@ -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

Loading…
Cancel
Save