selfprivacy.org/.drone.yml

31 lines
559 B
YAML
Raw Normal View History

2022-09-26 17:17:39 +00:00
kind: pipeline
type: exec
name: Build and Deploy
steps:
- name: Prepare
commands:
- eval $(ssh-agent -s)
2022-12-31 06:23:38 +00:00
- ssh-add - <<< "$SSH_PRIVATE_KEY"
2023-01-24 16:31:24 +00:00
- npm install postcss-cli
2022-09-26 17:17:39 +00:00
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