You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/container-build.yml
+90-13Lines changed: 90 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -59,28 +59,105 @@ jobs:
59
59
echo "$SSH_KEY" > ~/.ssh/id_rsa_arm
60
60
chmod 600 ~/.ssh/id_rsa_arm
61
61
echo "$SSH_CONFIG" | sed "s/SSH_IP/$SSH_IP/g" > ~/.ssh/config
62
-
echo "ServerAliveInterval 60" >> ~/.ssh/config
63
-
echo "ServerAliveCountMax 10" >> ~/.ssh/config
62
+
# Enhanced keepalive and timeout settings
63
+
cat >> ~/.ssh/config << 'EOF'
64
+
ServerAliveInterval 30
65
+
ServerAliveCountMax 3
66
+
TCPKeepAlive yes
67
+
ConnectTimeout 10
68
+
ConnectionAttempts 1
69
+
EOF
64
70
env:
65
71
SSH_KEY: ${{ secrets.ARM_SSH_KEY }}
66
72
SSH_IP: ${{ secrets.ARM_SSH_IP }}
67
73
SSH_CONFIG: ${{ secrets.ARM_SSH_CONFIG }}
68
74
- name: Check ARM SSH connectivity
69
75
if: startsWith(inputs.CACHE_SUFFIX, 'arm')
70
76
run: |
71
-
echo "Testing SSH connectivity to ARM node..."
72
-
for i in {1..5}; do
73
-
if ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa_arm root@$SSH_IP "echo 'Connection test $i successful' && docker info > /dev/null 2>&1 && echo 'Docker is running'"; then
if ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa_arm root@$SSH_IP "echo 'Connection test $i successful' && docker info > /dev/null 2>&1 && echo 'Docker is running'"; then
Copy file name to clipboardExpand all lines: .github/workflows/linux-build.yml
+90-13Lines changed: 90 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -68,28 +68,105 @@ jobs:
68
68
echo "$SSH_KEY" > ~/.ssh/id_rsa_arm
69
69
chmod 600 ~/.ssh/id_rsa_arm
70
70
echo "$SSH_CONFIG" | sed "s/SSH_IP/$SSH_IP/g" > ~/.ssh/config
71
-
echo "ServerAliveInterval 60" >> ~/.ssh/config
72
-
echo "ServerAliveCountMax 10" >> ~/.ssh/config
71
+
# Enhanced keepalive and timeout settings
72
+
cat >> ~/.ssh/config << 'EOF'
73
+
ServerAliveInterval 30
74
+
ServerAliveCountMax 3
75
+
TCPKeepAlive yes
76
+
ConnectTimeout 10
77
+
ConnectionAttempts 1
78
+
EOF
73
79
env:
74
80
SSH_KEY: ${{ secrets.ARM_SSH_KEY }}
75
81
SSH_IP: ${{ secrets.ARM_SSH_IP }}
76
82
SSH_CONFIG: ${{ secrets.ARM_SSH_CONFIG }}
77
83
- name: Check ARM SSH connectivity
78
84
if: startsWith(env.ARCH, 'arm') == true
79
85
run: |
80
-
echo "Testing SSH connectivity to ARM node..."
81
-
for i in {1..5}; do
82
-
if ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa_arm root@$SSH_IP "echo 'Connection test $i successful' && docker info > /dev/null 2>&1 && echo 'Docker is running'"; then
0 commit comments