指定SSH端口2223
Deploy to Test / deploy (push) Failing after 3s

This commit is contained in:
Knowledge Base Agent
2026-02-28 18:51:31 +08:00
parent 171e409393
commit d111fc1865
+2 -2
View File
@@ -16,11 +16,11 @@ jobs:
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H 192.168.1.22 >> ~/.ssh/known_hosts 2>/dev/null ssh-keyscan -p 2223 -H 192.168.1.22 >> ~/.ssh/known_hosts 2>/dev/null
- name: Checkout code - name: Checkout code
run: | run: |
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone git@192.168.1.22:starmen1265/knowledge-base.git /tmp/workspace GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa -p 2223 -o StrictHostKeyChecking=no" git clone sc-gitea@192.168.1.22:starmen1265/knowledge-base.git /tmp/workspace
cd /tmp/workspace cd /tmp/workspace
git checkout main git checkout main