Merge pull request 'Add Drone CI pipeline' (#3) from alya/selfprivacy.org:cicd into master

Reviewed-on: SelfPrivacy/selfprivacy.org#3
privacy_policy
Inex Code 2022-09-26 20:32:24 +03:00
commit ce7637b20f
2 changed files with 30 additions and 1 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

View File

@ -1,7 +1,7 @@
<div class="nav">
<div class="flex-box-wrap max-width">
<div class="w-25">
<a href="{{ .Site.BaseURL | absLangURL }}">
<a href="{{ .Site.BaseURL }}">
<div class="nav-logo-box">
<img src="/images/logos/self-privacy.png" alt="SelfPrivacy">
</div>