How to add a GitHub Webhook in OpenShift



Want to automate your builds upon code commitment? Easy with OpenShift 4.11! (I don’t know how far back this goes…)

First – in OpenShift:
  1. In your project, go to Builds
  2. Select the BuildConfig of your project
  3. Look for the Webhooks section at the bottom
  4. Click on Copy URL with Secret for the GitHub Webhook
Second – in GitHub:
  1. In the repository for your project, go to Settings
  2. Click on Webhooks on the left side menu
  3. Click in the Payload URL field
  4. Paste the URL you copied in OpenShift above
  5. Select Content type as “application/JSON”
  6. Leave the Secret field blank
  7. Finally, click on the green Update webhook button at the bottom
Done!

Comments