fix: use --force-recreate to update container in-place
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 4m21s
Run Tests / Backend Tests (push) Failing after 1m38s
Run Tests / Frontend Tests (push) Has started running
Run Tests / Test Summary (push) Has been cancelled

This avoids disconnecting from networks which seems to cause issues
when run from the workflow container. Force recreate updates the
container without removing it first.
This commit is contained in:
Gan, Jimmy
2026-04-04 01:36:18 +08:00
parent f27d414182
commit e396f77299
+2 -4
View File
@@ -65,7 +65,5 @@ jobs:
run: |
export DOCKER_API_VERSION=1.43
cd /nas-dashboard
# Stop and remove container, then recreate with new image
docker stop nas-dashboard-dev 2>/dev/null || true
docker rm nas-dashboard-dev 2>/dev/null || true
docker compose -f docker-compose.dev.yml up -d --pull never
# Force recreate container with new image (doesn't disconnect from networks)
docker compose -f docker-compose.dev.yml up -d --force-recreate --pull never