add drone pipeline

pull/3/head
Alya Sirko 2022-09-26 20:17:39 +03:00
parent 65e4be189e
commit 2fc4444f4e
1 changed files with 29 additions and 0 deletions

29
.drone.yml Normal file
View File

@ -0,0 +1,29 @@
kind: pipeline
type: exec
name: Build and Deploy
steps:
- name: Prepare
commands:
- eval $(ssh-agent -s)
- ssh-add - <<< "${SSH_PRIVATE_KEY}"
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
- name: Build
commands:
- hugo --gc
- name: Deploy
commands:
- scp -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -r public/* deployer@selfprivacy.org:/var/www/selfprivacy.org
trigger:
event:
- push
branch:
- master
node:
server: builder