48 lines
1.9 KiB
Bash
Executable File
48 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
# Repository Activation Guide for Drone
|
|
|
|
echo "🚨 REPOSITORY ACTIVATION REQUIRED"
|
|
echo "================================="
|
|
echo ""
|
|
echo "DIAGNOSIS:"
|
|
echo "✅ Webhook delivery: WORKING (Drone receives push notifications)"
|
|
echo "✅ DNS resolution: WORKING (Gitea can reach Drone)"
|
|
echo "✅ .drone.yml file: EXISTS and has proper content"
|
|
echo "❌ Repository status: NOT ACTIVATED in Drone"
|
|
echo ""
|
|
echo "ERROR IN LOGS:"
|
|
echo '{"commit":"53f88a1...","error":"configuration: not found","event":"push"}'
|
|
echo ""
|
|
echo "🎯 TO FIX THIS:"
|
|
echo ""
|
|
echo "METHOD 1: Web UI (Recommended)"
|
|
echo "------------------------------"
|
|
echo "1. Open your browser and go to: https://drone.aipice.local"
|
|
echo "2. Login with your Gitea credentials"
|
|
echo "3. Look for 'AIPICE/auth-service' in the repository list"
|
|
echo "4. If not listed, click 'SYNC' button to refresh from Gitea"
|
|
echo "5. Find 'AIPICE/auth-service' and click 'ACTIVATE'"
|
|
echo "6. Verify the repository shows as 'ACTIVE'"
|
|
echo ""
|
|
echo "METHOD 2: Check Current Status"
|
|
echo "-----------------------------"
|
|
echo "Run this command to check if repository is activated:"
|
|
echo ""
|
|
echo "curl -k -H 'Accept: application/json' https://drone.aipice.local/api/repos"
|
|
echo ""
|
|
echo "Look for 'AIPICE/auth-service' with 'active: true'"
|
|
echo ""
|
|
echo "🔧 TROUBLESHOOTING:"
|
|
echo ""
|
|
echo "If repository doesn't appear:"
|
|
echo "- Check Gitea integration settings in Drone"
|
|
echo "- Verify DRONE_GITEA_SERVER is correct in ConfigMap"
|
|
echo "- Check if user has admin access to the repository in Gitea"
|
|
echo ""
|
|
echo "Once activated, your sophisticated build system will work:"
|
|
echo "✅ Jsonnet configuration with modular imports"
|
|
echo "✅ External Buildah with replica-based atomic locking"
|
|
echo "✅ Graceful termination (2s vs 30s)"
|
|
echo "✅ Full RBAC permissions for deployment scaling"
|
|
echo ""
|
|
echo "🎉 Everything is ready - just needs activation!" |