30 lines
748 B
Bash
30 lines
748 B
Bash
#!/bin/bash
|
|
set -e
|
|
REGISTRY="rg.fr-par.scw.cloud/yumi"
|
|
MODULES=(
|
|
"billing-finance-core"
|
|
"crm-core"
|
|
"repo-integrations-core"
|
|
"observability-core"
|
|
"platform-projects-core"
|
|
"security-governance-core"
|
|
"baas-control-plane"
|
|
"automation-jobs-core"
|
|
)
|
|
|
|
for module in "${MODULES[@]}"; do
|
|
echo "🚀 Building $module..."
|
|
|
|
# Check if Dockerfile.api exists (for automation-jobs-core)
|
|
if [ -f "./$module/Dockerfile.api" ]; then
|
|
podman build -t "$REGISTRY/$module:latest" -f "./$module/Dockerfile.api" "./$module"
|
|
else
|
|
podman build -t "$REGISTRY/$module:latest" "./$module"
|
|
fi
|
|
|
|
echo "🚀 Pushing $module..."
|
|
podman push "$REGISTRY/$module:latest"
|
|
echo "✅ $module done!"
|
|
done
|
|
|
|
echo "🎉 All modules built and pushed!"
|