Adding woodpecker build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-11-09 16:14:14 -05:00
parent ea40719c4d
commit 98770dbcef
4 changed files with 25 additions and 1 deletions

11
.woodpecker.yml Normal file
View 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
View 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

View File

@@ -2,3 +2,5 @@
title = "About" title = "About"
path = "about" path = "about"
+++ +++
Bikes, Hikes, Haskell

2
zola
View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
docker run --rm -it \ docker run --rm \
-v $PWD:/app \ -v $PWD:/app \
--workdir /app \ --workdir /app \
-p 1024:1024 \ -p 1024:1024 \