Files
sysadmin-toolkit/.github/workflows/deploy.yml
T
admin ab24ed926b
Teste Shell Runner / shell-test (push) Successful in 20s
Adicionar .github/workflows/deploy.yml
2026-05-30 20:13:15 +00:00

40 lines
1003 B
YAML

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!"