tilde.club/deploy.sh
Elizabeth Hunt cbca57596a
All checks were successful
continuous-integration/drone/push Build is passing
rsync
2024-03-09 13:57:35 -07:00

12 lines
222 B
Bash
Executable File

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