Full Gitea Actions CI/CD with cPanel git deployment
CI - Test & Lint / lint (push) Failing after 1m11s
CI - Test & Lint / test-schema (push) Failing after 8s
🚀 Deploy to cPanel via Git / ci-check (push) Failing after 8s
🚀 Deploy to cPanel via Git / deploy-to-cpanel (push) Has been skipped
🚀 Deploy to cPanel via Git / deploy-fallback (push) Has been skipped
🚀 Deploy to cPanel via Git / verify (push) Has been skipped
🌊 Sync cPanel Git + WordPress / sync-cpanel (push) Failing after 9s
CI - Test & Lint / security (push) Successful in 1m42s
🌊 Sync cPanel Git + WordPress / sync-nextcloud (push) Failing after 10s

- CI workflow: PHP lint, security scan, schema validation
- Deploy workflow: SSH -> cPanel git push + WP REST API fallback + verify
- Sync workflow: cPanel sync + Nextcloud artifact upload
- Health workflow: every 30min plugin health check
- Scripts: verify-deploy, deploy-report, check-namespace, health-check, setup-secrets
- README with full architecture documentation
- Gitea Actions runner registered on Docker Swarm (contabo-swarm-runner)
This commit is contained in:
2026-07-03 08:56:15 +02:00
parent 17d218c3b6
commit f620c65794
10 changed files with 563 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
name: 🩺 Health Check - cPanel Agent
on:
schedule:
- cron: '*/30 * * * *' # Every 30 minutes
workflow_dispatch:
jobs:
health:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Plugin Status via WordPress
env:
WP_URL: ${{ secrets.WP_URL }}
WP_APP_USER: ${{ secrets.WP_APP_USER }}
WP_APP_PASSWORD: ${{ secrets.WP_APP_PASSWORD }}
run: |
curl -s "$WP_URL/wp-json/wp/v2/plugins" \
-u "$WP_APP_USER:$WP_APP_PASSWORD" | python3 .gitea/scripts/health-check.py
- name: Check REST API Endpoints
env:
WP_URL: ${{ secrets.WP_URL }}
run: |
# Try the hermes/v1 namespace
curl -s -o /dev/null -w "HTTP %{http_code}" "$WP_URL/wp-json/hermes/v1/content/generate" || echo "Endpoint check done"
- name: Notify on Failure
if: failure()
uses: actions/gitea-release-notify@v1
with:
title: "⚠️ cPanel Agent Health Check Failed"
body: "The health check for hermes-cpanel-agent on ummah.falahos.my failed. Check the Gitea Actions run for details."