Webhook keys用来连接Docker Hub。Webhooks主要作用是在Docker中心触发生成新的镜像和在Shipyard中重新部署。
要使用webhook key,只需为Docker中心的镜像在如下地址添加一个webhook:http://<shipyard-url>/hub/webhook/<key>
例如:
http://controller.example.com/hub/webhook/010f2af9db29f43a
。
shipyard cli> shipyard add-webhook-key --image ehazlett/go-demo
created key: 010f2af9db29f43a
shipyard cli> shipyard webhook-keys
Image Key
ehazlett/go-demo 010f2af9db29f43a
shipyard cli> shipyard remove-webhook-key 010f2af9db29f43a
removed 010f2af9db29f43a