瀏覽代碼

Show image of the Build trigger screen, and add a little search engine fodder for it.

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
Sven Dowideit 10 年之前
父節點
當前提交
b266ad9c60
共有 2 個文件被更改,包括 15 次插入5 次删除
  1. 15 5
      docs/sources/docker-hub/builds.md
  2. 二進制
      docs/sources/docker-hub/hub-images/build-trigger.png

+ 15 - 5
docs/sources/docker-hub/builds.md

@@ -209,7 +209,7 @@ repository's full description.The build process will look for a
 > rewritten the next time the Automated Build has been built. To make changes,
 > rewritten the next time the Automated Build has been built. To make changes,
 > modify the `README.md` from the Git repository.
 > modify the `README.md` from the Git repository.
 
 
-### Build triggers
+## Remote Build triggers
 
 
 If you need a way to trigger Automated Builds outside of GitHub or Bitbucket,
 If you need a way to trigger Automated Builds outside of GitHub or Bitbucket,
 you can set up a build trigger. When you turn on the build trigger for an
 you can set up a build trigger. When you turn on the build trigger for an
@@ -219,6 +219,16 @@ 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.
 repo on the Docker Hub.
 
 
+![Build trigger screen](/docker-hub/hub-images/build-trigger.png)
+
+You can use `curl` to trigger a build:
+
+```
+$ curl --data "build=true" -X POST https://registry.hub.docker.com/u/svendowideit/testhook/trigger/be579c
+82-7c0e-11e4-81c4-0242ac110020/
+OK
+```
+
 > **Note:** 
 > **Note:** 
 > You can only trigger one build at a time and no more than one
 > You can only trigger one build at a time and no more than one
 > every five minutes. If you already have a build pending, or if you
 > every five minutes. If you already have a build pending, or if you
@@ -226,7 +236,7 @@ repo on the Docker Hub.
 > To verify everything is working correctly, check the logs of last
 > To verify everything is working correctly, check the logs of last
 > ten triggers on the settings page .
 > ten triggers on the settings page .
 
 
-### Webhooks
+## Webhooks
 
 
 Automated Builds also include a Webhooks feature. Webhooks can be called
 Automated Builds also include a Webhooks feature. Webhooks can be called
 after a successful repository push is made. This includes when a new tag is added
 after a successful repository push is made. This includes when a new tag is added
@@ -280,7 +290,7 @@ in your chain.
 The first webhook in a chain will be called after a successful push. Subsequent
 The first webhook in a chain will be called after a successful push. Subsequent
 URLs will be contacted after the callback has been validated.
 URLs will be contacted after the callback has been validated.
 
 
-#### Validating a callback
+### Validating a callback
 
 
 In order to validate a callback in a webhook chain, you need to
 In order to validate a callback in a webhook chain, you need to
 
 
@@ -293,7 +303,7 @@ In order to validate a callback in a webhook chain, you need to
 To help you debug or simply view the results of your webhook(s),
 To help you debug or simply view the results of your webhook(s),
 view the "History" of the webhook available on its settings page.
 view the "History" of the webhook available on its settings page.
 
 
-#### Callback JSON data
+### Callback JSON data
 
 
 The following parameters are recognized in callback data:
 The following parameters are recognized in callback data:
 
 
@@ -315,7 +325,7 @@ The following parameters are recognized in callback data:
       "target_url": "http://ci.acme.com/results/afd339c1c3d27"
       "target_url": "http://ci.acme.com/results/afd339c1c3d27"
     }
     }
 
 
-### Repository links
+## Repository links
 
 
 Repository links are a way to associate one Automated Build with
 Repository links are a way to associate one Automated Build with
 another. If one gets updated,the linking system triggers a rebuild
 another. If one gets updated,the linking system triggers a rebuild

二進制
docs/sources/docker-hub/hub-images/build-trigger.png