drone: use docker for ssh
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
ssh pipelines require a separate runnermaster
parent
495bd44893
commit
89f5d07408
29
.drone.yml
29
.drone.yml
|
@ -63,24 +63,23 @@ depends_on:
|
|||
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: prod
|
||||
name: ssh
|
||||
|
||||
server:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
user:
|
||||
from_secret: ssh_user
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: install
|
||||
commands:
|
||||
- sudo pip install --upgrade morss[full]
|
||||
|
||||
- name: reload
|
||||
commands:
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
username:
|
||||
from_secret: ssh_user
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
script_stop: true
|
||||
script:
|
||||
- "pid=$$(sudo pidof 'gunicorn: master [morss]')"
|
||||
- sudo kill -s USR2 $$pid
|
||||
- sudo kill -s WINCH $$pid
|
||||
|
|
Loading…
Reference in New Issue