Listens for Webhook requests and triggers TeamCity builds.
- Run the hypoport/webhook container as a service
docker service create \
--name webhook \
-p 9000:9000 \
-e WEBHOOK_AUTH=<auth token> \
-e WEBHOOK_SLACK_TOKEN=<slack token> \
--update-order start-first \
hypoport/webhook:latest
- Follow the webhook logs
docker service logs -f webhook
- Manually test the webhook (simulates a Docker Hub Webhook)
curl -X POST 'http://localhost:9000/hooks/docker-hub?tcBuildTypeId=pku_ExplorationDay_WebhookTest&auth=<token>' \
-H 'Content-Type: application/json' \
-d '{"push_data": {"tag": "new-tag"}, "repository": {"repo_name": "repo/name"}}'
See hooks.json
for the actual config.
- From Slack:
/webhook [repo] [tag] [buildTypeId]
- From Docker Hub
- From a Pact Broker: see the pact-verify directory for details