Adicionar .github/workflows/deploy.yml
Teste Shell Runner / shell-test (push) Successful in 20s

This commit is contained in:
2026-05-30 20:13:15 +00:00
parent d37dbc30f2
commit ab24ed926b
+40
View File
@@ -0,0 +1,40 @@
name: Deploy CI
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
deploy:
runs-on: deploy
container:
image: alpine:latest
steps:
- name: Checkout
run: |
apk add --no-cache git bash
git clone http://10.11.10.71:3000/${{ gitea.repository }}.git .
git checkout ${{ gitea.sha }}
- name: Validar scripts shell
run: |
echo "🔍 Validando sintaxe dos scripts..."
for script in scripts/*.sh; do
if [ -f "$script" ]; then
echo "✅ Validando $script..."
bash -n "$script"
fi
done
- name: Executar verificações pós-deploy
run: |
echo "🔧 Executando verificações pós-deploy..."
chmod +x scripts/*.sh
./scripts/ping_monitor.sh
./scripts/ram-monitor.sh
./scripts/disk-monitor.sh
- name: Concluir deploy
run: echo "✅ Deploy concluído com sucesso!"