fix CI config

This commit is contained in:
Andrew 2023-02-19 23:09:47 -06:00
parent 8ce962fea5
commit 92f721d86d

View File

@ -13,9 +13,10 @@ pipeline:
- mkdir ~/.ssh && chmod -R 700 ~/.ssh
# - apt update -y && apt install openssh-client rsync -y
- echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/backy.andrewnw.xyz
- 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
- DISPLAY=":0.0" SSH_ASKPASS=~/.ssh/.print_ssh_password setsid ssh-add <( echo "$SSH_PRIVATE_KEY" base64 -w0 | base64 -d)
- rsync -atv --delete --progress public/ backy@backy.cybershell.xyz:docs
- rsync -atv --delete --progress vangen/ backy@backy.cybershell.xyz:vangen-go