From Dockerhub events

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.

Steps to create a Dockerhub Webhook for release

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

  1. On click of the create webhook button, a modal window appears in which we can enter the details for webhook creation

  1. Now we need to select the Webhook Type as Dockerhub from the Webhook Type dropdown

  1. After selecting the webhook type as Dockerhub, a dropdown will be shown to select the registry for which the webhook needs to be created

  1. After selecting the Registry, select the option type as push

  1. Once the action type has been selected, select the trigger type as release.

  1. After this users can select the release which they want to be triggered

  1. 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

  1. 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

  1. 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:

  1. Once the registry and the action type have been selected, select the release type as the pipeline

  1. Once the Trigger type has been selected, now select the pipeline that needs to be triggered

  1. 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

  1. After selecting the environment, users will be shown an option to select the cluster

  1. Once the cluster has been selected, select the microservice

  1. After selecting the microservice, users can move to the Map parameters step, to select the run parameters for the pipeline

  1. In Map parameters, users can select all the options as they desire

  1. Once all this is done, users can click on the Save button to create the webhook for the pipeline.

  1. 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.

Last updated