infra: exclude .git rsync deploy
All checks were successful
Deploy eolas-api / deploy (push) Successful in 34s
All checks were successful
Deploy eolas-api / deploy (push) Successful in 34s
This commit is contained in:
parent
aa9dcd7979
commit
2dadba0cbe
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{vars.VPS_DEPLOY_USER}} sudo /usr/bin/systemctl stop eolas-api.service
|
||||
|
||||
echo "⚡ INFO Copy updated sourcefile files via rsync"
|
||||
rsync -avz --delete --inplace --exclude='.env' -e "ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no" ./ ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-api/
|
||||
rsync -avz --delete --inplace --exclude='.env' --exclude=".git" -e "ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no" ./ ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-api/
|
||||
|
||||
echo "⚡ INFO Run npm install on VPS"
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{vars.VPS_DEPLOY_USER}} "bash -l -c 'source ~/.nvm/nvm.sh && cd /var/www/eolas-api && npm install --omit=dev'"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue