backy-docs/.woodpecker/publish-docs.yml

21 lines
864 B
YAML
Raw Normal View History

2023-02-20 04:22:58 +00:00
pipeline:
build:
image: klakegg/hugo:ext-debian-ci
commands:
2023-02-20 04:28:23 +00:00
- git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);'
2023-02-20 04:22:58 +00:00
- hugo
deploy:
image: debian
commands:
2023-02-20 04:46:14 +00:00
- echo "nameserver 1.1.1.1" > /etc/resolv.conf
2023-02-20 04:28:23 +00:00
- mkdir ~/.ssh && chmod -R 700 ~/.ssh
2023-02-20 04:22:58 +00:00
- apt update -y && apt install openssh-client rsync -y
- echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts
- echo 'echo "$SSH_PASSPHRASE"' > ~/.ssh/.print_ssh_password
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | DISPLAY=":0.0" SSH_ASKPASS=~/.ssh/.print_ssh_password setsid ssh-add - > /dev/null
- rsync -atv --delete --progress public/ backy@backy.cybershell.xyz:docs
- rsync -atv --delete --progress vangen/ backy@backy.cybershell.xyz:vangen-go
branches: master