tilde.club/deploy.sh
Elizabeth Hunt 151c0d0ce0
All checks were successful
continuous-integration/drone/push Build is passing
rsync
2024-03-09 14:27:41 -07:00

17 lines
337 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/tst/$ITEM_NAME
done
echo "finished copying to remote host..."
cd ..
rm /tmp/key