fix: substituido _ po - no nome script ram e disk
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: Deploy via Script Externo
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch: # Permite executar manualmente
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 📥 Baixar código
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🔧 Configurar permissões
|
||||
run: chmod +x scripts/*.sh
|
||||
|
||||
- name: 🚀 Executar deploy
|
||||
run: ./scripts/deploy.sh
|
||||
env:
|
||||
DEPLOY_ENV: production
|
||||
TIMESTAMP: $(date +%s)
|
||||
@@ -1,11 +1,19 @@
|
||||
name: ShellCheck
|
||||
name: ShellCheck CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, feature/* ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
shellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
with:
|
||||
severity: warning
|
||||
ignore_paths: logs
|
||||
|
||||
Binary file not shown.
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Script de deploy executado pelo GitHub Actions
|
||||
|
||||
echo "🚀 Iniciando deploy automático..."
|
||||
echo "📦 Deploy ID: $(date +%Y%m%d-%H%M%S)"
|
||||
|
||||
# Verificar scripts
|
||||
for script in scripts/*.sh; do
|
||||
if [ -f "$script" ]; then
|
||||
echo "✅ Validando $script..."
|
||||
bash -n "$script" # Syntax check
|
||||
fi
|
||||
done
|
||||
|
||||
# Simular deploy
|
||||
echo "📂 Criando backup..."
|
||||
mkdir -p backups
|
||||
tar -czf "backups/backup-$(date +%Y%m%d).tar.gz" scripts/
|
||||
|
||||
echo "🔧 Executando verificações pós-deploy..."
|
||||
./scripts/ping_monitor.sh
|
||||
./scripts/ram-monitor.sh
|
||||
./scripts/disk-monitor.sh
|
||||
|
||||
echo "✅ Deploy concluído com sucesso!"
|
||||
Reference in New Issue
Block a user