docs/.woodpecker.yml

36 lines
841 B
YAML

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:"
branches: [ master ]