fix: use NAS IP for registry mirror in deploy workflow
Run Tests / Backend Tests (push) Failing after 4m16s
Run Tests / Frontend Tests (push) Failing after 57s
Run Tests / Backend Tests (pull_request) Failing after 3m59s
Run Tests / Frontend Tests (pull_request) Failing after 57s
Run Tests / Test Summary (push) Failing after 12s
Run Tests / Test Summary (pull_request) Failing after 13s

- 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
This commit is contained in:
Gan, Jimmy
2026-04-08 02:32:13 +08:00
parent b4b1038a87
commit bce67f4ea7
+3 -2
View File
@@ -25,7 +25,8 @@ jobs:
- name: Warm mirror cache for base images - name: Warm mirror cache for base images
run: | run: |
set -u 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 command -v curl >/dev/null 2>&1; then
if curl -fsS "http://${mirror_host}/v2/" >/dev/null; then if curl -fsS "http://${mirror_host}/v2/" >/dev/null; then
@@ -41,7 +42,7 @@ jobs:
image_ref="$1" image_ref="$1"
mirror_ref="${mirror_host}/library/${image_ref}" mirror_ref="${mirror_host}/library/${image_ref}"
echo "Attempting mirror pre-pull: ${mirror_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}" docker tag "${mirror_ref}" "${image_ref}"
echo "Mirror pre-pull succeeded for ${image_ref}" echo "Mirror pre-pull succeeded for ${image_ref}"
else else