mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2025-01-15 13:26:37 +00:00
add drone pipeline
This commit is contained in:
parent
65e4be189e
commit
2fc4444f4e
29
.drone.yml
Normal file
29
.drone.yml
Normal 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
|
Loading…
Reference in a new issue