mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-11-18 06:39:16 +00:00
Merge pull request 'Add Drone CI pipeline' (#3) from alya/selfprivacy.org:cicd into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org/pulls/3
This commit is contained in:
commit
ce7637b20f
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
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue