fix: use nsenter with privileged runner for deploy
Run Tests / Frontend Tests (push) Waiting to run
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 4m35s
Run Tests / Backend Tests (push) Failing after 3m24s
Run Tests / Test Summary (push) Has been cancelled

This commit is contained in:
Gan, Jimmy
2026-04-04 10:18:18 +08:00
parent 0dbf647bb7
commit 3191381bbf
+3 -8
View File
@@ -64,11 +64,6 @@ jobs:
- name: Deploy dev
run: |
export DOCKER_API_VERSION=1.43
# Run deploy in a container with host network to avoid Docker-in-Docker limitations
docker run --rm --network host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /volume1/docker/nas-dashboard:/nas-dashboard \
docker:cli sh -c "
docker rm -f nas-dashboard-dev || true
docker compose -f /nas-dashboard/docker-compose.dev.yml up -d --pull never
"
# Use nsenter to run in host network namespace (requires privileged runner)
nsenter -t 1 -n docker rm -f nas-dashboard-dev || true
nsenter -t 1 -n docker compose -f /volume1/docker/nas-dashboard/docker-compose.dev.yml up -d --pull never