infra: assume VPS deploy user in deploy
Some checks failed
Deploy eolas-api / deploy (push) Failing after 9s
Some checks failed
Deploy eolas-api / deploy (push) Failing after 9s
This commit is contained in:
parent
afd79d4900
commit
c9ce57f06f
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
echo "${{ secrets.SSH_FORGEJO_KEY }}" > /tmp/ssh_key
|
||||
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_USER }} "bash -c 'cd /var/www/eolas-api && rm -rf * .[^.]*'"
|
||||
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_USER }}:/var/www/eolas-api/
|
||||
rm /tmp/ssh_key
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue