From 1ae789dac392229594f842bbd2a88b76285abd88 Mon Sep 17 00:00:00 2001 From: Johannes Kimmel Date: Sat, 19 Nov 2022 23:55:03 +0100 Subject: [PATCH] add ci/cd on master branch https://docs.freifunk-franken.de/ --- .woodpecker.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..0f1d877 --- /dev/null +++ b/.woodpecker.yml @@ -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 ]