add ci (maybe it'll work!)

This commit is contained in:
leah 2021-04-12 22:17:10 +01:00
parent 6c1dbb7aa4
commit a69cbfd092
1 changed files with 21 additions and 0 deletions

21
.drone.yml Normal file
View File

@ -0,0 +1,21 @@
---
kind: pipeline
type: ssh
name: deploy
server:
host:
from_secret: host
user:
from_secret: username
ssh_key:
from_secret: ssh_key
clone:
disable: true
trigger:
branch:
- master
steps:
- name: deploy
commands:
- sudo -Hu www-data git -C /var/site pull --rebase origin master
- sudo -Hu www-data cd /var/site/wiki && make clean && make