Fix docs compose rendering to include all profiles

This commit is contained in:
beatz174-bit
2026-05-13 08:33:26 +10:00
parent 7fcafed3f9
commit 8d18ab7059
9 changed files with 1552 additions and 36 deletions
+16 -1
View File
@@ -22,4 +22,19 @@ if [ ! -f "$ENV_FILE" ]; then
exit 1
fi
docker compose -p core --env-file "$ENV_FILE" "${ARGS[@]}" config > docs/generated/docker-compose.resolved.yml
docker compose -p core --env-file "$ENV_FILE" --profile all "${ARGS[@]}" config > docs/generated/docker-compose.resolved.yml
service_count="$(
python3 - <<'PY'
import yaml
from pathlib import Path
data = yaml.safe_load(Path("docs/generated/docker-compose.resolved.yml").read_text()) or {}
print(len(data.get("services") or {}))
PY
)"
if [ "$service_count" -eq 0 ]; then
echo "ERROR: rendered compose config contains zero services; check --profile all / COMPOSE_PROFILES." >&2
exit 1
fi