deploy
This commit is contained in:
parent
6766bd2ba1
commit
b8cba066c9
1 changed files with 7 additions and 1 deletions
|
|
@ -29,10 +29,16 @@ jobs:
|
|||
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
echo "🔍 Debugging SSH connection..."
|
||||
echo "Target host: ${{ secrets.SSH_HOST }}"
|
||||
ping -c 3 ${{ secrets.SSH_HOST }} || echo "⚠️ Ping failed"
|
||||
nslookup ${{ secrets.SSH_HOST }} || echo "⚠️ DNS lookup failed"
|
||||
nc -zv ${{ secrets.SSH_HOST }} 22 || echo "⚠️ Port 22 not reachable"
|
||||
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
||||
ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts 2>/dev/null || echo "⚠️ SSH keyscan failed"
|
||||
|
||||
- name: Sync Source Code
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue