forked from freifunk-franken/docs
parent
5403157da0
commit
1ae789dac3
|
@ -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 ]
|
Loading…
Reference in New Issue