From fa2d96d58a971dcd1547c7ea2cd943725cda8ec6 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Wed, 3 Jun 2026 03:56:21 +0800 Subject: [PATCH] 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 --- .gitea/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 57bb590..c087311 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout repository run: | 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 - name: Setup Python @@ -108,7 +108,7 @@ jobs: - name: Checkout repository run: | 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 - name: Setup Node.js @@ -186,7 +186,7 @@ jobs: - name: Checkout repository run: | 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 - name: Warm mirror cache for base images