From bce67f4ea7e3f51a1c04860824545929433821d6 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Wed, 8 Apr 2026 02:32:13 +0800 Subject: [PATCH] fix: use NAS IP for registry mirror in deploy workflow - Change mirror_host from 127.0.0.1:5501 to 100.78.131.124:5501 - CI runner container can't access localhost, needs host IP - Increase timeout from 60s to 120s for slower pulls - Fixes network timeout errors in deploy.yml workflow --- .gitea/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 665119a..ce0fcd7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,7 +25,8 @@ jobs: - name: Warm mirror cache for base images run: | set -u - mirror_host="127.0.0.1:5501" + # Use host.docker.internal or NAS IP to access registry mirror from container + mirror_host="100.78.131.124:5501" if command -v curl >/dev/null 2>&1; then if curl -fsS "http://${mirror_host}/v2/" >/dev/null; then @@ -41,7 +42,7 @@ jobs: image_ref="$1" mirror_ref="${mirror_host}/library/${image_ref}" echo "Attempting mirror pre-pull: ${mirror_ref}" - if timeout 60 docker pull "${mirror_ref}"; then + if timeout 120 docker pull "${mirror_ref}"; then docker tag "${mirror_ref}" "${image_ref}" echo "Mirror pre-pull succeeded for ${image_ref}" else