Add auto deploy
This commit is contained in:
parent
d95330fd8b
commit
6227083ed3
25
.drone.yml
25
.drone.yml
@ -1,6 +1,6 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build
|
name: test
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
@ -11,3 +11,26 @@ steps:
|
|||||||
image: asciidoctor/docker-asciidoctor
|
image: asciidoctor/docker-asciidoctor
|
||||||
commands:
|
commands:
|
||||||
- asciidoctor *.adoc
|
- asciidoctor *.adoc
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: ssh
|
||||||
|
name: deploy
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- senpai
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
server:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_client_host
|
||||||
|
user:
|
||||||
|
from_secret: ssh_client_user
|
||||||
|
ssh_key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
steps:
|
||||||
|
- name: pull
|
||||||
|
commands:
|
||||||
|
- cd /srv/website/projects
|
||||||
|
- git pull
|
Loading…
Reference in New Issue
Block a user