Skip to content

Listens for Webhook requests and triggers TeamCity builds.

License

Notifications You must be signed in to change notification settings

hypoport/webhook

Repository files navigation

hypoport/webhook

Listens for Webhook requests and triggers TeamCity builds.

Usage

  • 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"}}'

Supported Triggers

See hooks.json for the actual config.

Supported Actions

About

Listens for Webhook requests and triggers TeamCity builds.

Resources

License

Stars

Watchers

Forks

Packages

No packages published