This commit is contained in:
parent
e2f9bbd829
commit
01a802ee23
1 changed files with 2 additions and 2 deletions
|
@ -55,6 +55,6 @@ jobs:
|
||||||
echo "test content" > test.txt
|
echo "test content" > test.txt
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/ssh_key
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/ssh_key
|
||||||
chmod 600 /tmp/ssh_key
|
chmod 600 /tmp/ssh_key
|
||||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@172.17.0.1 "rm -rf /var/www/systemsobscure.blog/*"
|
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@116.203.113.18 "rm -rf /var/www/systemsobscure.blog/*"
|
||||||
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no test.txt thomas@172.17.0.1:/var/www/systemsobscure.blog/
|
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no test.txt thomas@YOUR_VPS_IP:/var/www/systemsobscure.blog/
|
||||||
rm /tmp/ssh_key
|
rm /tmp/ssh_key
|
||||||
|
|
Loading…
Add table
Reference in a new issue