fix: use host path when executing deploy script via nsenter
Run Tests / Backend Tests (push) Failing after 14m37s
Run Tests / Frontend Tests (push) Failing after 13m3s
Run Tests / Test Summary (push) Failing after 56s

This commit is contained in:
Gan, Jimmy
2026-04-04 12:44:25 +08:00
parent d588a48529
commit 4769297ab9
+3 -3
View File
@@ -65,7 +65,7 @@ jobs:
- name: Deploy dev
run: |
export DOCKER_API_VERSION=1.43
# Write deploy script to host filesystem
# Write deploy script to mounted volume (accessible from both container and host)
cat > /nas-dashboard/deploy.sh << 'EOF'
#!/bin/bash
set -euo pipefail
@@ -75,5 +75,5 @@ cd /volume1/docker/nas-dashboard
/volume1/@appstore/ContainerManager/usr/bin/docker compose -f docker-compose.dev.yml up -d --pull never
EOF
chmod +x /nas-dashboard/deploy.sh
# Execute script on host using nsenter
nsenter -t 1 -m -n /nas-dashboard/deploy.sh
# Execute script on host using the host path
nsenter -t 1 -m -n /volume1/docker/nas-dashboard/deploy.sh