fix: stop then up instead of force-recreate
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 4m36s
Run Tests / Backend Tests (push) Failing after 2m14s
Run Tests / Frontend Tests (push) Has started running
Run Tests / Test Summary (push) Has been cancelled

force-recreate still tries to disconnect/reconnect networks which fails.
Use stop then up - compose will detect the image changed and recreate
the container automatically without network issues.
This commit is contained in:
Gan, Jimmy
2026-04-04 01:52:58 +08:00
parent 42f87a526d
commit 2a8e5d4952
+3 -2
View File
@@ -65,5 +65,6 @@ jobs:
run: |
export DOCKER_API_VERSION=1.43
cd /nas-dashboard
# Force recreate container with new image (doesn't disconnect from networks)
docker compose -f docker-compose.dev.yml up -d --force-recreate --pull never
# Stop container, then start with new image (compose will recreate if needed)
docker compose -f docker-compose.dev.yml stop dashboard-dev
docker compose -f docker-compose.dev.yml up -d --pull never