tilde.club/deploy.sh

12 lines
222 B
Bash
Raw Normal View History

2024-03-09 02:25:48 -05:00
#!/bin/sh
set -e
echo $SSH_KEY | base64 -d >> /tmp/key
2024-03-09 15:40:07 -05:00
2024-03-09 02:25:48 -05:00
chmod -R 0600 /tmp/key
2024-03-09 15:40:07 -05:00
rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz dist/. $RSYNC_DESTINATION
2024-03-09 02:25:48 -05:00
2024-03-09 15:40:07 -05:00
echo "finished copying to remote host..."
2024-03-09 02:25:48 -05:00
rm /tmp/key