#!/bin/bash set -e REGISTRY="rg.fr-par.scw.cloud/yumi" SERVICES=( "automation-jobs-core" "billing-finance-core" "baas-control-plane" "crm-core" "dashboard" "identity-gateway" "observability-core" "repo-integrations-core" "security-governance-core" ) for SERVICE in "${SERVICES[@]}"; do if [ -d "$SERVICE" ]; then if [ "$SERVICE" == "automation-jobs-core" ]; then echo "🚀 Building automation-jobs-api..." podman build -f Dockerfile.api -t "$REGISTRY/automation-jobs-api:latest" ./$SERVICE echo "🚀 Pushing automation-jobs-api..." podman push "$REGISTRY/automation-jobs-api:latest" echo "🚀 Building automation-jobs-worker..." podman build -f Dockerfile.worker -t "$REGISTRY/automation-jobs-worker:latest" ./$SERVICE echo "🚀 Pushing automation-jobs-worker..." podman push "$REGISTRY/automation-jobs-worker:latest" else echo "🚀 Building $SERVICE..." podman build -t "$REGISTRY/$SERVICE:latest" ./$SERVICE echo "🚀 Pushing $SERVICE..." podman push "$REGISTRY/$SERVICE:latest" fi echo "✅ Done $SERVICE" else echo "⚠️ Directory $SERVICE not found!" fi done