Listens for Webhook requests and triggers TeamCity builds.
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
docker service logs -f 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.
/webhook [repo] [tag] [buildTypeId]Content type
Image
Digest
Size
6.6 MB
Last updated
over 5 years ago
docker pull hypoport/webhook