tilde.club/deploy.sh
Elizabeth Hunt 0d63a70d35
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
don't delete everything
2024-03-09 14:28:29 -07:00

17 lines
333 B
Bash
Executable File

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