mistymountains/deploy.sh

11 lines
271 B
Bash
Raw Normal View History

2024-04-30 00:01:09 -04:00
#!/bin/bash
set -e
echo $SSH_KEY | base64 -d >> /tmp/key
chmod -R 0600 /tmp/key
ssh -i /tmp/key -o StrictHostKeyChecking=no $HOST "cd /home/lizzy/mistymountains && git pull && git reset --hard origin/master && npm run build && sudo systemctl restart mmt"
rm /tmp/key