fix: cd to compose directory before running docker compose
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 4m26s
Run Tests / Backend Tests (push) Failing after 2m19s
Run Tests / Frontend Tests (push) Failing after 1m5s
Run Tests / Test Summary (push) Has been cancelled

The workflow needs to be in the same directory as the compose file
for docker compose to work properly. Manual execution worked, so
replicate that approach.
This commit is contained in:
Gan, Jimmy
2026-04-04 01:26:56 +08:00
parent f19b70d179
commit f27d414182
+3 -3
View File
@@ -64,8 +64,8 @@ jobs:
- name: Deploy dev
run: |
export DOCKER_API_VERSION=1.43
# Stop and remove old container if it exists
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
# Create new container
docker compose -f /nas-dashboard/docker-compose.dev.yml up -d --pull never
docker compose -f docker-compose.dev.yml up -d --pull never