Fix server address
All checks were successful
Build and Deploy Hugo / deploy (push) Successful in -16m19s
All checks were successful
Build and Deploy Hugo / deploy (push) Successful in -16m19s
This commit is contained in:
parent
5a53f8cf4a
commit
73ef460319
1 changed files with 3 additions and 3 deletions
|
@ -39,11 +39,11 @@ jobs:
|
|||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
chmod 700 ~/.ssh
|
||||
echo "SSH key saved and permissions set" ssh-keyscan -H smokey >> ~/.ssh/known_hosts
|
||||
echo "SSH key saved and permissions set" ssh-keyscan -H alexselimov.com >> ~/.ssh/known_hosts
|
||||
echo "Host key added to known_hosts"
|
||||
# Test SSH connection
|
||||
echo "Testing SSH connection..."
|
||||
ssh -o StrictHostKeyChecking=no -o BatchMode=yes root@smokey "echo 'SSH connection successful'" || echo "SSH connection failed"
|
||||
ssh -o StrictHostKeyChecking=no -o BatchMode=yes root@alexselimov.com "echo 'SSH connection successful'" || echo "SSH connection failed"
|
||||
|
||||
- name: Deploy
|
||||
run: rsync -azvr public/* root@smokey:/var/www/alexselimov.com/
|
||||
run: rsync -azvr public/* root@alexselimov.com:/var/www/alexselimov.com/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue