Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Latest commit

 

History

History
19 lines (15 loc) · 818 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 818 Bytes

docker-hub-hook Build Status

Webhook for Docker Hub Automated Builds

Environment Variables

  • DHH_PORT - port for HTTP server to listen on
  • DHH_CMD - command to execute
  • DHH_CWD - current working directory for command
  • DHH_TOKEN - secret for simple auth
  • DHH_REPO - repository name on Docker Hub
  • DHH_TAG - tag for repository on Docker Hub
DHH_PORT=4321 DHH_CMD='ls -al' DHH_CWD='/home/' DHH_TOKEN=abc123 DHH_TAG node index.js
curl -H "Content-Type: application/json" -X POST -d '{"push_data": { "tag": "master" }, "repository": { "repo_name": "jsperf/jsperf.com"}, "callback_url": "https://www.google.com/"}' http://127.0.0.1:4321/hook?token=abc123