2024-03-09 02:25:48 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo $SSH_KEY | base64 -d >> /tmp/key
|
|
|
|
chmod -R 0600 /tmp/key
|
2024-03-09 15:40:07 -05:00
|
|
|
|
|
|
|
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 ..
|
2024-03-09 02:25:48 -05:00
|
|
|
|
|
|
|
rm /tmp/key
|