#!/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