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:
- In your project, go to Builds
- Select the BuildConfig of your project
- Look for the Webhooks section at the bottom
- Click on Copy URL with Secret for the GitHub Webhook
- In the repository for your project, go to Settings
- Click on Webhooks on the left side menu
- Click in the Payload URL field
- Paste the URL you copied in OpenShift above
- Select Content type as “application/JSON”
- Leave the Secret field blank
- Finally, click on the green Update webhook button at the bottom
Comments
Post a Comment