fix: use explicit submodule paths instead of --exclude flag

git submodule update does not support --exclude flag.
Explicitly specify Docker submodules: server-core, dashboard-ui
This commit is contained in:
datadunia
2026-06-26 10:28:22 +07:00
parent 80ba316d4a
commit d6610f82e9
+3 -4
View File
@@ -45,10 +45,9 @@ git pull origin main || { GIT_PULL_FAILED=true; echo "[!] Git pull for main repo
echo "[+] Syncing and updating submodules..." echo "[+] Syncing and updating submodules..."
SUBMODULE_FAILED=false SUBMODULE_FAILED=false
# Exclude device-agent and device-agent-embedded (built separately, not Docker) # Only update server-core and dashboard-ui (Docker components)
git submodule update --init --recursive --remote \ # device-agent and device-agent-embedded are built separately
--exclude apps/device-agent \ git submodule update --init --remote apps/server-core apps/dashboard-ui || { SUBMODULE_FAILED=true; echo "[!] Git submodule update skipped or failed."; }
--exclude apps/device-agent-embedded || { SUBMODULE_FAILED=true; echo "[!] Git submodule update skipped or failed."; }
# 2b. Build VitePress docs (non-blocking) # 2b. Build VitePress docs (non-blocking)
echo "[+] Building VitePress documentation..." echo "[+] Building VitePress documentation..."