Fix CI deployment workaround path and fallback healthcheck
ci/gitea-actions CI manual bypass

This commit is contained in:
Gan, Jimmy
2026-05-27 20:36:34 +08:00
parent bd3ff716d6
commit 8e6ffb6de4
+6 -2
View File
@@ -283,9 +283,9 @@ jobs:
continue
skip_net = False
out.append(l)
open('/tmp/prod-ci.yml','w').writelines(out)
open('/nas-dashboard/prod-ci.yml','w').writelines(out)
"
docker compose -f /tmp/prod-ci.yml up -d --pull never 2>&1 || true
docker compose -f /nas-dashboard/prod-ci.yml up -d --pull never 2>&1 || true
fi
if ! docker container inspect nas-dashboard >/dev/null 2>&1; then
@@ -299,6 +299,10 @@ jobs:
docker run -d --name nas-dashboard \
--restart unless-stopped \
-p 127.0.0.1:4000:4000 \
--health-cmd 'python -c "import urllib.request; urllib.request.urlopen(\"http://localhost:4000/api/health\")"' \
--health-interval 30s \
--health-timeout 5s \
--health-retries 3 \
-e DOCKER_HOST=tcp://docker-socket-proxy:2375 \
-e GITEA_URL=http://gitea:3000 \
-e GITEA_TOKEN=${GITEA_TOKEN} \