workspace-v1/scripts/push-all-projects.sh
rckrdmrd cb4c0681d3 feat(workspace): Add new projects and update architecture
New projects created:
- michangarrito (marketplace mobile)
- template-saas (SaaS template)
- clinica-dental (dental ERP)
- clinica-veterinaria (veterinary ERP)

Architecture updates:
- Move catalog from core/ to shared/
- Add MCP servers structure and templates
- Add git management scripts
- Update SUBREPOSITORIOS.md with 15 new repos
- Update .gitignore for new projects

Repository infrastructure:
- 4 main repositories
- 11 subrepositorios
- Gitea remotes configured

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:43:28 -06:00

65 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# =============================================================================
# Script: Push todos los proyectos a Gitea
# Fecha: 2026-01-04
# Prerrequisito: Ejecutar create-gitea-repos-api.sh primero
# =============================================================================
WORKSPACE="/home/isem/workspace-v1"
# Colores
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m'
echo -e "${GREEN}=== Push de proyectos a Gitea ===${NC}"
echo ""
# Proyectos a procesar
PROJECTS=(
"erp-construccion"
"erp-core"
"erp-mecanicas-diesel"
"erp-suite"
"erp-clinicas"
"erp-retail"
"erp-vidrio-templado"
"trading-platform"
"betting-analytics"
"inmobiliaria-analytics"
"platform_marketing_content"
)
for proj in "${PROJECTS[@]}"; do
echo -ne "${YELLOW}Pushing: $proj... ${NC}"
proj_path="${WORKSPACE}/projects/${proj}"
if [ ! -d "$proj_path/.git" ]; then
echo -e "${RED}Sin .git${NC}"
continue
fi
cd "$proj_path"
# Intentar push
result=$(git push -u origin main 2>&1)
if [ $? -eq 0 ]; then
echo -e "${GREEN}OK${NC}"
else
if echo "$result" | grep -q "Everything up-to-date"; then
echo -e "${GREEN}Ya sincronizado${NC}"
elif echo "$result" | grep -q "repository not found\|does not exist"; then
echo -e "${RED}Repo no existe en Gitea${NC}"
else
echo -e "${RED}Error${NC}"
echo " $result" | head -2
fi
fi
done
echo ""
echo -e "${GREEN}=== Proceso completado ===${NC}"