This commit is contained in:
parent
9f509759cc
commit
5f1d6888f0
39
.drone.yml
39
.drone.yml
@ -2,6 +2,11 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: build
|
||||||
|
host:
|
||||||
|
path: /home/citadel/build/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: Build
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
@ -12,34 +17,12 @@ steps:
|
|||||||
- pip install .
|
- pip install .
|
||||||
- pex ./ -m yamaha2mqtt -o yamaha2mqtt.pex
|
- pex ./ -m yamaha2mqtt -o yamaha2mqtt.pex
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
image: appleboy/drone-scp
|
image: python:3.9
|
||||||
settings:
|
volumes:
|
||||||
host:
|
- name: build
|
||||||
- gavarni.jombi.fr
|
path: /build
|
||||||
user: citadel
|
commands:
|
||||||
# ssh-key:
|
- cp ./yamaha2mqtt.pex /build/yamaha2mqtt
|
||||||
# from_secret: ssh_key
|
|
||||||
password:
|
|
||||||
from_secret: ssh_password
|
|
||||||
port: 22
|
|
||||||
command_timeout: 2m
|
|
||||||
target: /home/citadel
|
|
||||||
source:
|
|
||||||
- ./yamaha2mqtt.pex
|
|
||||||
strip_components: 1
|
|
||||||
- name: ssh commands
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
settings:
|
|
||||||
host: gavarni.jombi.fr
|
|
||||||
username: citadel
|
|
||||||
port: 22
|
|
||||||
# key:
|
|
||||||
# from_secret: ssh_key
|
|
||||||
password:
|
|
||||||
from_secret: ssh_password
|
|
||||||
script:
|
|
||||||
- mv yamaha2mqtt.pex ./services/bin/yamaha2mqtt
|
|
||||||
- systemctl --user restart citadel@yamaha2mqtt
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user