From Dockerhub events
Last updated
Last updated
thatSuppose users want to trigger a pipeline or release on the successful push of an image on a registry on Dockerhub, they can create a webhook using the webhook type as Dockerhub.
Pre-requisites:
An active Dockerhub account with registries needs to have the PAT which can be entered while creating Dockerhub integrations
An Active cluster
A Release that has been created from the Release Templates section
Steps
On click of the create webhook button, a modal window appears in which we can enter the details for webhook creation
Now we need to select the Webhook Type as Dockerhub from the Webhook Type dropdown
After selecting the webhook type as Dockerhub, a dropdown will be shown to select the registry for which the webhook needs to be created
After selecting the Registry, select the option type as push
Once the action type has been selected, select the trigger type as release.
After this users can select the release which they want to be triggered
Once every option have been selected the map parameters option will be enabled and users can click on it to move to the next step
After going to the second step users can choose the input run parameters, once all these options have been selected, users can click on the save button to create the webhook
Once the user clicks on save, the webhook has been created and is seen in the table list view
Users can click on the edit button to edit the webhooks, click on the toggle button to enable/disable the webhook, and as it is seen from the webhook type that it is a Dockerhub webhook. Steps to create Dockerhub webhook for pipeline
Pre-requisites:
An Active cluster
A microservice
Follow the same steps until Step 4 of Creating Webhooks for release
Steps:
Once the registry and the action type have been selected, select the release type as the pipeline
Once the Trigger type has been selected, now select the pipeline that needs to be triggered
After selecting the pipeline, select the environment in which the webhook needs to be created Remember to select the environment the same in which the cluster has been created
After selecting the environment, users will be shown an option to select the cluster
Once the cluster has been selected, select the microservice
After selecting the microservice, users can move to the Map parameters step, to select the run parameters for the pipeline
In Map parameters, users can select all the options as they desire
Once all this is done, users can click on the Save button to create the webhook for the pipeline.
Once the webhook has been created successfully, it is shown in the webhooks list view
Users can edit the webhook from the edit option, and click on the toggle window to enable/disable the webhooks, as well as it can be seen from the webhook type that it is a Dockerhub webhook.