34 lines
755 B
YAML
34 lines
755 B
YAML
skip_clone: true
|
|
steps:
|
|
- name: deploy
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host:
|
|
- s.ar21.de
|
|
username: root
|
|
key:
|
|
from_secret: DEPLOY_SSH_KEY
|
|
port: 22
|
|
command_timeout: 2m
|
|
script:
|
|
- cd ~/compose/shbot && docker compose pull shbot && docker compose up -d shbot
|
|
when:
|
|
- branch: master
|
|
event: [push, manual]
|
|
- name: deploy dev
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host:
|
|
- s.ar21.de
|
|
username: root
|
|
key:
|
|
from_secret: DEPLOY_SSH_KEY
|
|
port: 22
|
|
command_timeout: 2m
|
|
script:
|
|
- cd /root && docker compose -f shbot-dev.yaml pull shbot-dev && docker compose -f shbot-dev.yaml up -d shbot-dev
|
|
when:
|
|
- branch: dev
|
|
event: [push, manual]
|
|
depends_on:
|
|
- build
|