Files
Maison/arti-api/auth-service/WEBHOOK-FIX-GUIDE.md
2026-02-10 12:12:11 +01:00

40 lines
1.5 KiB
Bash

#!/bin/bash
# Webhook troubleshooting guide
echo "🔍 WEBHOOK TROUBLESHOOTING GUIDE"
echo "================================="
echo ""
echo "Your Jsonnet configuration is PERFECT! The issue is webhook delivery."
echo "Drone server is not receiving push notifications from Gitea."
echo ""
echo "TO FIX THIS:"
echo ""
echo "1. ACCESS DRONE WEB UI:"
echo " - Open https://drone.aipice.local in your browser"
echo " - Login with your Gitea credentials"
echo " - Check if AIPICE/auth-service repository is listed and ACTIVE"
echo ""
echo "2. IF REPOSITORY NOT LISTED:"
echo " - Click 'SYNC' to refresh repository list from Gitea"
echo " - Find AIPICE/auth-service and click 'ACTIVATE'"
echo ""
echo "3. IF REPOSITORY LISTED BUT INACTIVE:"
echo " - Click on the repository"
echo " - Click 'ACTIVATE' button"
echo " - This will create/update the webhook in Gitea"
echo ""
echo "4. VERIFY WEBHOOK IN GITEA:"
echo " - Go to https://gitea.aipice.local/AIPICE/auth-service/settings/hooks"
echo " - You should see a webhook pointing to https://drone.aipice.local/hook"
echo " - Test the webhook by clicking 'Test Delivery'"
echo ""
echo "5. CHECK NETWORK CONNECTIVITY:"
echo " - Ensure Gitea can reach Drone webhook endpoint"
echo " - Check firewall rules between Gitea and Drone"
echo ""
echo "ALTERNATIVE: Manual trigger for testing:"
echo " - In Drone web UI, go to repository"
echo " - Click 'NEW BUILD' button"
echo " - This will test your Jsonnet config without webhook"
echo ""
echo "Your current .drone.jsonnet will work perfectly once webhook is fixed!"