From 81e7e46fab08a80b3016af0b3b4504e366a9a852 Mon Sep 17 00:00:00 2001 From: Jie Min Wong Date: Thu, 13 Dec 2018 15:43:04 -0800 Subject: [PATCH 1/3] re-add section on adding web hook --- docker-hub/builds/classic.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docker-hub/builds/classic.md b/docker-hub/builds/classic.md index 91b479dd93..7e9a0c4444 100644 --- a/docker-hub/builds/classic.md +++ b/docker-hub/builds/classic.md @@ -38,6 +38,37 @@ Likewise, you can switch back to new Automated Build by clicking on this link at ![Switching to new Automated Build](images/classic-vs-new-switch-to-new.png) + +## Adding Github web hook manually + +A GitHub webhook allows GitHub to notify Docker Hub when something has +been committed to a given Git repository. + +When you create a Classic Automated Build, a webhook should get automatically added to your GitHub +repository. + +To add, confirm, or modify the webhook, log in to GitHub, then navigate to +the repository. Within the repository, select **Settings > Webhooks**. +You must have admin privileges on the repository to view or modify +this setting. Click **Add webhook**, and use the following settings: + + +| Field | Value | +| ------|------ | +| Payload URL | https://registry.hub.docker.com/hooks/github | +| Content type | application/json | +| Which events would you like to trigger this webhook? | Just the push event | +| Active | checked | + +The image below shows the **Webhooks/Add webhook** form with the above settings reflected: + +![github-webhook-add](images/github-webhook-add.png) + +If configured correctly, you'll see this in the **Webhooks** view +![github-webhook](images/github-webhook.png) + + + ## Frequently Asked Questions From d891eb2337783b45f90ea43274947ba56a8c267f Mon Sep 17 00:00:00 2001 From: Jamin Wong Date: Sun, 16 Dec 2018 20:41:00 -0800 Subject: [PATCH 2/3] Remove space between 'web hook' in title --- docker-hub/builds/classic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-hub/builds/classic.md b/docker-hub/builds/classic.md index 7e9a0c4444..9dc15beab5 100644 --- a/docker-hub/builds/classic.md +++ b/docker-hub/builds/classic.md @@ -39,7 +39,7 @@ Likewise, you can switch back to new Automated Build by clicking on this link at -## Adding Github web hook manually +## Adding Github webhook manually A GitHub webhook allows GitHub to notify Docker Hub when something has been committed to a given Git repository. From 913cb80a2c7bb35a35512a79dfcd1702ab59bc02 Mon Sep 17 00:00:00 2001 From: Maria Bermudez Date: Tue, 18 Dec 2018 14:08:44 -0800 Subject: [PATCH 3/3] Update image paths --- docker-hub/builds/classic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-hub/builds/classic.md b/docker-hub/builds/classic.md index 9dc15beab5..994578f0aa 100644 --- a/docker-hub/builds/classic.md +++ b/docker-hub/builds/classic.md @@ -62,10 +62,10 @@ this setting. Click **Add webhook**, and use the following settings: The image below shows the **Webhooks/Add webhook** form with the above settings reflected: -![github-webhook-add](images/github-webhook-add.png) +![github-webhook-add](/docker-hub/images/github-webhook-add.png) If configured correctly, you'll see this in the **Webhooks** view -![github-webhook](images/github-webhook.png) +![github-webhook](/docker-hub/images/github-webhook.png)