tilde.club/deploy.sh
Elizabeth Hunt 8d9babd744
All checks were successful
continuous-integration/drone/push Build is passing
rsync
2024-03-09 14:12:54 -07:00

17 lines
290 B
Bash
Executable File

#!/bin/sh
set -e
echo $SSH_KEY | base64 -d >> /tmp/key
chmod -R 0600 /tmp/key
cd dist
for i in .; do
echo "copying $i"
rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz --delete $i $RSYNC_DESTINATION/$i
done
echo "finished copying to remote host..."
cd ..
rm /tmp/key