This commit is contained in:
parent
3844835077
commit
d58232452e
28
.drone.yml
Normal file
28
.drone.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user