From 95a9921b7a4326f907f22e0eea07521772daf8ee Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sat, 25 Jul 2026 14:21:35 +0700 Subject: [PATCH] fix(deploy): use 'docker compose config --services' for reliable service name extraction Replace fragile grep-based extraction that matched volume names (nats_data, tools_data) and 'null' as pseudo-services. --- .github/workflows/deploy-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 9a2b5d9..8580a66 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -164,7 +164,7 @@ jobs: TARGET_SERVICES="" for f in $TARGET_COMPOSE; do if [ -f "$f" ]; then - svcs=$(grep -E '^\s{2}[a-zA-Z0-9_-]+:' "$f" | grep -v 'app-shared-net' | sed 's/://g' | xargs) + svcs=$($COMPOSE_CMD -f "$f" config --services 2>/dev/null | tr '\n' ' ' | xargs) TARGET_SERVICES="$TARGET_SERVICES $svcs" fi done