Fix Forntend build issues 7

This commit is contained in:
2026-01-24 16:00:51 +01:00
parent c82e1824a0
commit c5a2dabd12
2 changed files with 45 additions and 3 deletions

View File

@@ -94,9 +94,51 @@ spec:
# Compute short hash once for job name updates
SHORT_HASH=$(echo "$(params.git-revision)" | cut -c 1-8)
# Handle special cases for service discovery
# "all" = all services + gateway + frontend
# "services-and-gateway" = all services + gateway (no frontend) - used when shared/ changes
SERVICES_PARAM=$(echo "$(params.services)" | tr -d '\n' | tr -d ' ')
WORKSPACE="$(workspaces.source.path)"
if [ "$SERVICES_PARAM" = "all" ] || [ "$SERVICES_PARAM" = "services-and-gateway" ]; then
echo "Expanding '$SERVICES_PARAM' to actual service list..."
SERVICES=""
# Find all services with Dockerfiles
if [ -d "$WORKSPACE/services" ]; then
for svc_name in $(ls "$WORKSPACE/services/"); do
if [ -f "$WORKSPACE/services/$svc_name/Dockerfile" ]; then
if [ -z "$SERVICES" ]; then
SERVICES="$svc_name"
else
SERVICES="$SERVICES,$svc_name"
fi
fi
done
fi
# Add gateway
if [ -d "$WORKSPACE/gateway" ]; then
if [ -z "$SERVICES" ]; then
SERVICES="gateway"
else
SERVICES="$SERVICES,gateway"
fi
fi
# Add frontend ONLY for "all" (not for "services-and-gateway")
if [ "$SERVICES_PARAM" = "all" ] && [ -d "$WORKSPACE/frontend" ]; then
if [ -z "$SERVICES" ]; then
SERVICES="frontend"
else
SERVICES="$SERVICES,frontend"
fi
fi
echo "Expanded services: $SERVICES"
else
SERVICES="$SERVICES_PARAM"
fi
# Update image tags in Kubernetes manifests
# Service names come from detect-changes task as folder names: auth, tenant, ai_insights, etc.
for service in $(echo "$(params.services)" | tr ',' '\n'); do
for service in $(echo "$SERVICES" | tr ',' '\n'); do
service=$(echo "$service" | xargs) # Trim whitespace
if [ -n "$service" ] && [ "$service" != "none" ] && [ "$service" != "infrastructure" ] && [ "$service" != "shared" ]; then
echo ""
@@ -186,7 +228,7 @@ spec:
git add .
git status
if ! git diff --cached --quiet; then
git commit -m "Update images for services: $(params.services) [skip ci]"
git commit -m "Update images for services: $SERVICES [skip ci]"
echo "Pushing to branch: $BRANCH_NAME"
git push origin "HEAD:$BRANCH_NAME"
echo "GitOps manifests updated successfully"

View File

@@ -24,7 +24,7 @@ logger = structlog.get_logger()
Base = declarative_base()
class DatabaseManager:
"""Enhanced Database Manager for Microservices
"""Test Enhanced Database Manager for Microservices
Provides:
- Connection pooling with configurable settings