Add drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Nicolas Duhamel 2021-03-15 11:48:26 +01:00
parent 3844835077
commit d58232452e

28
.drone.yml Normal file
View File

@ -0,0 +1,28 @@
kind: pipeline
type: docker
name: default
steps:
- name: Build
image: python
commands:
- pip install pex
- pex ./ -m citadel.devices -o devices.pex
- name: Deploy
image: appleboy/drone-scp
settings:
host:
- gavarni.jombi.fr
user: citadel
key:
from_secret: ssh_key
port: 22
command_timeout: 2m
target: /home/citadel/devices
source:
- devices.pex
rm: true
strip_components: 1
when:
branch:
- master