Use NAS LAN IP for checkout (192.168.31.221:3300)

host.docker.internal doesn't resolve in job containers despite the
runner config setting --add-host. Use the NAS LAN IP directly,
which is reachable from any Docker bridge network.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-06-03 03:56:21 +08:00
parent 9e72e8abdf
commit fa2d96d58a
+3 -3
View File
@@ -22,7 +22,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone --depth=1 "http://host.docker.internal:3300/${GITHUB_REPOSITORY}.git" . git clone --depth=1 "http://192.168.31.221:3300/${GITHUB_REPOSITORY}.git" .
fi fi
- name: Setup Python - name: Setup Python
@@ -108,7 +108,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone --depth=1 "http://host.docker.internal:3300/${GITHUB_REPOSITORY}.git" . git clone --depth=1 "http://192.168.31.221:3300/${GITHUB_REPOSITORY}.git" .
fi fi
- name: Setup Node.js - name: Setup Node.js
@@ -186,7 +186,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone --depth=1 "http://host.docker.internal:3300/${GITHUB_REPOSITORY}.git" . git clone --depth=1 "http://192.168.31.221:3300/${GITHUB_REPOSITORY}.git" .
fi fi
- name: Warm mirror cache for base images - name: Warm mirror cache for base images