core/podman_push.sh
Tiago Yamamoto a52bd4519d refactor: optimize Dockerfiles and documentation for core services
- Use Google Distroless images for all services (Go & Node.js).
- Standardize documentation with [PROJECT-NAME].md.
- Add .dockerignore and .gitignore to all projects.
- Remove docker-compose.yml in favor of docker run instructions.
- Fix Go version and dependency issues in observability, repo-integrations, and security-governance.
- Add Podman support (fully qualified image names).
- Update Dashboard to use Node.js static server for Distroless compatibility.
2025-12-30 13:22:34 -03:00

41 lines
1.3 KiB
Bash
Executable file

#!/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