Adding woodpecker build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
11
.woodpecker.yml
Normal file
11
.woodpecker.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: jbrechtel/zola:latest
|
||||||
|
commands:
|
||||||
|
- "zola build"
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
image: jbrechtel/rsync:latest
|
||||||
|
commands:
|
||||||
|
- ./ci-deploy
|
||||||
|
secrets: [ DEPLOY_USER, DEPLOY_PATH, DEPLOY_HOST, DEPLOY_PASSWORD ]
|
||||||
11
ci-deploy
Executable file
11
ci-deploy
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
mkdir -p $HOME/.ssh
|
||||||
|
ssh-keyscan -t rsa $DEPLOY_HOST >> $HOME/.ssh/known_hosts
|
||||||
|
|
||||||
|
chown -R $(whoami) .
|
||||||
|
|
||||||
|
sshpass -p "$DEPLOY_PASSWORD" \
|
||||||
|
rsync -avzrO \
|
||||||
|
-e 'ssh -o "StrictHostKeyChecking no"' \
|
||||||
|
./public/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
|
||||||
@@ -2,3 +2,5 @@
|
|||||||
title = "About"
|
title = "About"
|
||||||
path = "about"
|
path = "about"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
Bikes, Hikes, Haskell
|
||||||
|
|||||||
Reference in New Issue
Block a user