add ci/cd on master branch

https://docs.freifunk-franken.de/
This commit is contained in:
Johannes Kimmel 2022-11-19 23:55:03 +01:00
parent 5403157da0
commit 1ae789dac3
1 changed files with 35 additions and 0 deletions

35
.woodpecker.yml Normal file
View File

@ -0,0 +1,35 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
tags: true
pipeline:
version:
image: klakegg/hugo:0.105.0-ext-alpine-ci
commands:
- hugo version
build:
image: klakegg/hugo:0.105.0-ext-alpine-ci
commands:
- hugo --verbose --debug --printPathWarnings
list-files:
image: klakegg/hugo:0.105.0-ext-alpine-ci
commands:
- ls -Rl public
deploy:
image: klakegg/hugo:0.105.0-ext-alpine-ci
secrets:
- BOT_PRIVATE_KEY
commands:
- apk add --no-cache openssh-client rsync
- mkdir -p $HOME/.ssh
- ssh-keyscan -t ed25519 git.freifunk-franken.de > $HOME/.ssh/known_hosts
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_ed25519
- chmod 0600 $HOME/.ssh/id_ed25519
- rsync -a public/ docs@git.freifunk-franken.de:/var/www/docs/
branches: [ master ]