🚀 Auto-deploy: melhoria no snap e medição AR em 22/05/2026 14:53:05

This commit is contained in:
2026-05-22 14:53:05 +00:00
parent bd9d0028f1
commit 69b001f316
5 changed files with 925 additions and 27 deletions
Executable
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
# ---------------------------------------------------------
# STEELXR: SCRIPT DE ATUALIZAÇÃO E DEPLOY AUTOMÁTICO
# ---------------------------------------------------------
CYAN='\033[0;36m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m'
echo -e "\n${CYAN}🚀 Iniciando Ciclo Automático SteelXR...${NC}"
# 1. Sincronização com Repositório Git (se existir)
if [ -d .git ]; then
echo -e "${YELLOW}📝 Sincronizando código com Git...${NC}"
git add .
if git diff-index --quiet HEAD --; then
echo -e "${GREEN}✨ Código local já está sincronizado.${NC}"
else
TIMESTAMP=$(date +"%d/%m/%Y %H:%M:%S")
echo -e "${CYAN}📤 Gravando alterações (Auto-update $TIMESTAMP)...${NC}"
git commit -m "🚀 Auto-deploy: melhoria no snap e medição AR em $TIMESTAMP"
if git remote | grep -q 'origin'; then
echo -e "${CYAN}📤 Enviando para o repositório remoto (Gitea)...${NC}"
git push origin main
fi
fi
else
echo -e "${YELLOW}️ Diretório não é um repositório Git. Pulando sincronização Git.${NC}"
fi
echo -e "${GREEN}🏁 Ciclo concluído com sucesso. O webhook do Coolify iniciará o deploy na VPS.${NC}\n"