refactor: store VPS user in env var
All checks were successful
Deploy Blog / deploy (push) Successful in 11s
All checks were successful
Deploy Blog / deploy (push) Successful in 11s
This commit is contained in:
parent
b74f5ea941
commit
77d88b6a77
1 changed files with 2 additions and 2 deletions
|
@ -13,6 +13,6 @@ jobs:
|
|||
echo "test content" > test.txt
|
||||
echo "${{ secrets.SSH_FORGEJO_KEY }}" > /tmp/ssh_key
|
||||
chmod 600 /tmp/ssh_key
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@116.203.113.18 "bash -c 'rm -rf /var/www/systemsobscure.blog/*'"
|
||||
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no test.txt thomas@116.203.113.18:/var/www/systemsobscure.blog/
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_USER }} "bash -c 'rm -rf /var/www/systemsobscure.blog/*'"
|
||||
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no test.txt ${{ vars.VPS_USER }}:/var/www/systemsobscure.blog/
|
||||
rm /tmp/ssh_key
|
||||
|
|
Loading…
Add table
Reference in a new issue