2022-11-19 00:39:32 -06:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
settings:
|
|
|
|
recursive: true
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: klakegg/hugo:ext-alpine
|
|
|
|
commands:
|
|
|
|
- hugo -D
|
2022-11-19 11:10:43 -06:00
|
|
|
deploy:
|
|
|
|
image: seriousbug/rsync
|
|
|
|
secrets: [SSH_KEY, SSH_USER]
|
|
|
|
commands:
|
2022-11-19 11:19:00 -06:00
|
|
|
- echo $SSH_KEY | base64 -d > ssh_key
|
2022-11-19 11:11:45 -06:00
|
|
|
- chmod 600 ssh_key
|
2022-11-19 11:10:43 -06:00
|
|
|
- rsync -avz -e 'ssh -o StrictHostKeyChecking=no -i ssh_key' public/ $SSH_USER@bgenc.net:/array/www/
|