Merge pull request #10548 from SvenDowideit/add-webhook-image-list

The Hub build webhooks now list the images that have been built
This commit is contained in:
Michael Crosby 2015-02-06 15:15:16 -08:00
commit 3807bd9777
2 changed files with 18 additions and 10 deletions

View File

@ -8,7 +8,7 @@ page_keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker Hub
*Automated Builds* are a special feature of Docker Hub which allow you to *Automated Builds* are a special feature of Docker Hub which allow you to
use [Docker Hub's](https://hub.docker.com) build clusters to automatically use [Docker Hub's](https://hub.docker.com) build clusters to automatically
create images from a specified `Dockerfile` and a GitHub or Bitbucket repo create images from a specified `Dockerfile` and a GitHub or Bitbucket repository
(or "context"). The system will clone your repository and build the image (or "context"). The system will clone your repository and build the image
described by the `Dockerfile` using the repository as the context. The described by the `Dockerfile` using the repository as the context. The
resulting automated image will then be uploaded to the Docker Hub registry resulting automated image will then be uploaded to the Docker Hub registry
@ -148,7 +148,7 @@ https://registry.hub.docker.com/associate/bitbucket/).
Then follow the onscreen instructions to authorize and link your Then follow the onscreen instructions to authorize and link your
Bitbucket account to Docker Hub. Once it is linked, you'll be able Bitbucket account to Docker Hub. Once it is linked, you'll be able
to choose a repo from which to create the Automatic Build. to choose a repository from which to create the Automatic Build.
### Creating an Automated Build ### Creating an Automated Build
@ -159,7 +159,7 @@ public or private Bitbucket repositories with a `Dockerfile`.
### Adding a Hook ### Adding a Hook
When you link your Docker Hub account, a `POST` hook should get automatically When you link your Docker Hub account, a `POST` hook should get automatically
added to your Bitbucket repo. Follow the steps below to confirm or modify the added to your Bitbucket repository. Follow the steps below to confirm or modify the
Bitbucket hooks for your Automated Build: Bitbucket hooks for your Automated Build:
<table class="table table-bordered"> <table class="table table-bordered">
@ -195,8 +195,8 @@ Bitbucket hooks for your Automated Build:
During the build process, Docker will copy the contents of your `Dockerfile`. During the build process, Docker will copy the contents of your `Dockerfile`.
It will also add it to the [Docker Hub](https://hub.docker.com) for the Docker It will also add it to the [Docker Hub](https://hub.docker.com) for the Docker
community (for public repos) or approved team members/orgs (for private repos) community (for public repositories) or approved team members/orgs (for private
to see on the repository page. repositories) to see on the repository page.
### README.md ### README.md
@ -217,7 +217,7 @@ Automated Build, it will give you a URL to which you can send POST requests.
This will trigger the Automated Build, much as with a GitHub webhook. This will trigger the Automated Build, much as with a GitHub webhook.
Build triggers are available under the Settings menu of each Automated Build Build triggers are available under the Settings menu of each Automated Build
repo on the Docker Hub. repository on the Docker Hub.
![Build trigger screen](/docker-hub/hub-images/build-trigger.png) ![Build trigger screen](/docker-hub/hub-images/build-trigger.png)
@ -249,7 +249,11 @@ payload:
{ {
"callback_url": "https://registry.hub.docker.com/u/svendowideit/testhook/hook/2141b5bi5i5b02bec211i4eeih0242eg11000a/", "callback_url": "https://registry.hub.docker.com/u/svendowideit/testhook/hook/2141b5bi5i5b02bec211i4eeih0242eg11000a/",
"push_data": { "push_data": {
"images": [], "images": [
"27d47432a69bca5f2700e4dff7de0388ed65f9d3fb1ec645e2bc24c223dc1cc3",
"51a9c7c1f8bb2fa19bcd09789a34e63f35abb80044bc10196e304f6634cc582c",
...
],
"pushed_at": 1.417566161e+09, "pushed_at": 1.417566161e+09,
"pusher": "trustedbuilder" "pusher": "trustedbuilder"
}, },
@ -336,7 +340,7 @@ another. If one gets updated,the linking system triggers a rebuild
for the other Automated Build. This makes it easy to keep all your for the other Automated Build. This makes it easy to keep all your
Automated Builds up to date. Automated Builds up to date.
To add a link, go to the repo for the Automated Build you want to To add a link, go to the repository for the Automated Build you want to
link to and click on *Repository Links* under the Settings menu at link to and click on *Repository Links* under the Settings menu at
right. Then, enter the name of the repository that you want have linked. right. Then, enter the name of the repository that you want have linked.

View File

@ -111,7 +111,11 @@ similar to the example shown below.
{ {
"callback_url": "https://registry.hub.docker.com/u/svendowideit/busybox/hook/2141bc0cdec4hebec411i4c1g40242eg110020/", "callback_url": "https://registry.hub.docker.com/u/svendowideit/busybox/hook/2141bc0cdec4hebec411i4c1g40242eg110020/",
"push_data": { "push_data": {
"images": [], "images": [
"27d47432a69bca5f2700e4dff7de0388ed65f9d3fb1ec645e2bc24c223dc1cc3",
"51a9c7c1f8bb2fa19bcd09789a34e63f35abb80044bc10196e304f6634cc582c",
...
],
"pushed_at": 1.417566822e+09, "pushed_at": 1.417566822e+09,
"pusher": "svendowideit" "pusher": "svendowideit"
}, },
@ -135,7 +139,7 @@ similar to the example shown below.
Webhooks allow you to notify people, services and other applications of Webhooks allow you to notify people, services and other applications of
new updates to your images and repositories. To get started adding webhooks, new updates to your images and repositories. To get started adding webhooks,
go to the desired repo in the Hub, and click "Webhooks" under the "Settings" go to the desired repository in the Hub, and click "Webhooks" under the "Settings"
box. box.
> **Note:** For testing, you can try an HTTP request tool like > **Note:** For testing, you can try an HTTP request tool like