drone: use docker for ssh
continuous-integration/drone/push Build was killed Details

ssh pipelines require a separate runner
master
pictuga 2021-12-14 15:33:38 +00:00
parent 495bd44893
commit 89f5d07408
1 changed files with 18 additions and 19 deletions

View File

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