infra: use rsync instead of ssh+scp to copy files at deploy
Some checks failed
Deploy eolas-api / deploy (push) Failing after 14s
Some checks failed
Deploy eolas-api / deploy (push) Failing after 14s
This commit is contained in:
parent
80d1247333
commit
55f77f208c
1 changed files with 1 additions and 2 deletions
|
|
@ -65,6 +65,5 @@ jobs:
|
|||
run: |
|
||||
echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key
|
||||
chmod 600 /tmp/ssh_key
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'cd /var/www/eolas-api && rm -rf * .[^.]*'"
|
||||
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r ./* ${{ 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/
|
||||
rm /tmp/ssh_key
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue