infra: use deploy user on vps to deploy
All checks were successful
Deploy Blog / deploy (push) Successful in 1m52s
All checks were successful
Deploy Blog / deploy (push) Successful in 1m52s
This commit is contained in:
parent
50e6ee2e77
commit
2ce5898767
1 changed files with 3 additions and 3 deletions
|
|
@ -12,8 +12,8 @@ jobs:
|
||||||
- run: npm run build:posts
|
- run: npm run build:posts
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: |
|
- run: |
|
||||||
echo "${{ secrets.SSH_FORGEJO_KEY }}" > /tmp/ssh_key
|
echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key
|
||||||
chmod 600 /tmp/ssh_key
|
chmod 600 /tmp/ssh_key
|
||||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_USER }} "bash -c 'rm -rf /var/www/systemsobscure.blog/*'"
|
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'rm -rf /var/www/systemsobscure.blog/*'"
|
||||||
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* ${{ vars.VPS_USER }}:/var/www/systemsobscure.blog/
|
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* ${{ vars.VPS_DEPLOY_USER }}:/var/www/systemsobscure.blog/
|
||||||
rm /tmp/ssh_key
|
rm /tmp/ssh_key
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue