infra: try rsync in deploy script with sudo
All checks were successful
Deploy eolas-api / deploy (push) Successful in 22s

This commit is contained in:
Thomas Bishop 2025-10-10 15:24:16 +01:00
parent 73b1df9a10
commit d9463b4a40

View file

@ -63,7 +63,7 @@ jobs:
- name: Deploy to VPS - name: Deploy to VPS
run: | run: |
sudo apt-get update && sudo apt-get install -y rsync apt-get update && apt-get install -y rsync
echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key
chmod 600 /tmp/ssh_key chmod 600 /tmp/ssh_key
rsync -avz --delete --exclude='.env' -e "ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no" ./ ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-api/ rsync -avz --delete --exclude='.env' -e "ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no" ./ ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-api/