This commit is contained in:
@@ -42,6 +42,11 @@ jobs:
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
ssh-keyscan -p ${{ vars.ssh_port }} ${{ vars.ssh_host }} >> ~/.ssh/known_hosts
|
ssh-keyscan -p ${{ vars.ssh_port }} ${{ vars.ssh_host }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
- name: Test SSH connection
|
||||||
|
run: |
|
||||||
|
# Test basic SSH connection
|
||||||
|
ssh -o StrictHostKeyChecking=no ${{ vars.ssh_user }}@${{ vars.ssh_host }} -p ${{ vars.ssh_port }} "echo 'SSH connection successful'"
|
||||||
|
|
||||||
- name: Test Docker via SSH
|
- name: Test Docker via SSH
|
||||||
run: |
|
run: |
|
||||||
# Test Docker version through SSH
|
# Test Docker version through SSH
|
||||||
|
|||||||
Reference in New Issue
Block a user