rsync
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elizabeth Hunt 2024-03-09 13:40:07 -07:00
parent 1ab79d9a1a
commit 9b929627b9
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ steps:
image: alpine image: alpine
commands: commands:
- sh compile.sh - sh compile.sh
- apk add openssh - apk add rsync openssh
- sh deploy.sh - sh deploy.sh
environment: environment:
SSH_CONNECTION_STRING: SSH_CONNECTION_STRING:

View File

@ -3,7 +3,9 @@
set -e set -e
echo $SSH_KEY | base64 -d >> /tmp/key echo $SSH_KEY | base64 -d >> /tmp/key
chmod -R 0600 /tmp/key
scp -o StrictHostKeyChecking=no -i /tmp/key -r dist/* $SSH_CONNECTION_STRING:~
chmod -R 0600 /tmp/key
rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz dist/* $SSH_CONNECTION_STRING:~
echo "finished copying to remote host..."
rm /tmp/key rm /tmp/key