Fix S2I webhook URL - use OpenShift API server

- Change from application route to OpenShift API server
- Fix DNS resolution issue in GitHub Actions
- Use api.shrocp4upi419ovn.lab.upshift.rdu2.redhat.com:6443
This commit is contained in:
2025-10-04 10:02:29 -03:00
parent 2bb99839ba
commit a73aa4a76f

View File

@@ -34,8 +34,8 @@ jobs:
echo "🔗 Commit: ${{ github.sha }}"
echo "🌿 Branch: ${{ github.ref_name }}"
# URL do webhook genérico do OpenShift
WEBHOOK_URL="https://${{ inputs.openshift_server || 'oru.apps.shrocp4upi419ovn.lab.upshift.rdu2.redhat.com' }}/apis/build.openshift.io/v1/namespaces/${{ inputs.namespace || env.NAMESPACE }}/buildconfigs/${{ env.APP_NAME }}/webhooks/pqWLANKULBy1p6aTbPFa/generic"
# URL do webhook genérico do OpenShift (usar API server, não rota da aplicação)
WEBHOOK_URL="https://api.shrocp4upi419ovn.lab.upshift.rdu2.redhat.com:6443/apis/build.openshift.io/v1/namespaces/${{ inputs.namespace || env.NAMESPACE }}/buildconfigs/${{ env.APP_NAME }}/webhooks/pqWLANKULBy1p6aTbPFa/generic"
echo "🔗 Webhook URL: $WEBHOOK_URL"