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

jsperf/docker-hub-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Webhook for Docker Hub Automated Builds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published