{"id":20643903,"url":"https://github.com/adjust/gohub","last_synced_at":"2025-05-10T08:31:10.195Z","repository":{"id":6412472,"uuid":"7650774","full_name":"adjust/gohub","owner":"adjust","description":"github webhook based deloyment server","archived":true,"fork":false,"pushed_at":"2015-07-01T11:27:09.000Z","size":179,"stargazers_count":61,"open_issues_count":0,"forks_count":28,"subscribers_count":78,"default_branch":"master","last_synced_at":"2025-03-22T07:51:27.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"big-elephants.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adjust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-16T17:55:31.000Z","updated_at":"2024-09-05T11:46:22.000Z","dependencies_parsed_at":"2022-08-27T14:37:34.799Z","dependency_job_id":null,"html_url":"https://github.com/adjust/gohub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgohub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgohub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgohub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgohub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adjust","download_url":"https://codeload.github.com/adjust/gohub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253389742,"owners_count":21900805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T16:14:16.289Z","updated_at":"2025-05-10T08:31:09.911Z","avatar_url":"https://github.com/adjust.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gohub\n=====\n\n## What is gohub?\n\ngohub is a little webserver written in go. He waits for webhook calls by github to run little shell commands.\n\n## What is it good for?\n\nImagine you have your repo spread over several instances. You can use gohub to automate updating all your cloned repos.\n\n## How to use\n\nJust edit the config.json to your needs. A short example:\nYou want to track the status of your Repository \"repo\" and the branch master. If there is an update to this branch you want to execute your shell script \"niftyscript.sh\".\n\n```json\n{\n    \"Hooks\":[\n        {\n          \"Repo\":\"repo\",\n          \"Branch\":\"master\",\n          \"Shell\":\"niftyscript.sh\"\n        }\n    ]\n}\n```\n\nNow start the server with\n  \n    go run main.go --port 6578\n\nand add a git-webhook for your.domain.com:6578/repo_master. Everytime you push to master, your script gets executed.\n\n## What about safety?\n\nGit webhooks use only 4 different ips for their webhooks. (207.97.227.253, 50.57.128.197, 108.171.174.178, 50.57.231.61) You can easily restrict access to your gohup server by using either a firewall or an equivalent nginx configuration.\n\n## Using Docker\n\n    docker build -t {you}/gohub .\n    docker run -d --name gohub -p 6578:6578 {you}/gohub\n\nWith Docker support (access host docker inside container)\n    \n    docker run -d --name gohub -p 6578:6578 -v /var/run/docker.sock:/var/run/docker.sock {you}/gohub\n\nMounting volume and changing default params\n\n    docker run -d --name gohub -p 6578:6578 -v /YOUR/APP:/app {you}/gohub --port 6578 --config /app/your_config.json --log /app/gohub.log\n    \n## License\n\nThis Software is licensed under the MIT License.\n\nCopyright (c) 2012 adeven GmbH, \nhttp://www.adeven.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fgohub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadjust%2Fgohub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fgohub/lists"}