add deploy ci
This commit is contained in:
parent
9e18b3a0be
commit
a1c188d1b6
1 changed files with 35 additions and 0 deletions
35
.drone.yml
35
.drone.yml
|
@ -34,4 +34,39 @@ steps:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
- push
|
- push
|
||||||
|
- name: dev docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: DOCKER_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: DOCKER_PASSWORD
|
||||||
|
repo: secondhemd/shbot
|
||||||
|
tags: dev
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
include:
|
||||||
|
- dev
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
|
- 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 /root && docker-compose pull shbot && docker-compose up -d shbot
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
include:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
# test
|
# test
|
Loading…
Reference in a new issue