{"id":20475458,"url":"https://github.com/setnemo/autodeploy-webhooks-github-via-php","last_synced_at":"2025-10-29T04:03:07.493Z","repository":{"id":110587848,"uuid":"169921225","full_name":"setnemo/autodeploy-webhooks-github-via-php","owner":"setnemo","description":"A small script to automatically deploy a web project from github. Called when merging a commit","archived":false,"fork":false,"pushed_at":"2019-02-09T23:39:17.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-10T16:58:22.746Z","etag":null,"topics":["autodeploy","deploy","github","php","webhook"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/setnemo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-09T22:37:18.000Z","updated_at":"2019-02-09T23:23:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee25b7de-9580-47fe-96ae-36b2352f4a45","html_url":"https://github.com/setnemo/autodeploy-webhooks-github-via-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/setnemo/autodeploy-webhooks-github-via-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fautodeploy-webhooks-github-via-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fautodeploy-webhooks-github-via-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fautodeploy-webhooks-github-via-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fautodeploy-webhooks-github-via-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setnemo","download_url":"https://codeload.github.com/setnemo/autodeploy-webhooks-github-via-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fautodeploy-webhooks-github-via-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260843550,"owners_count":23071587,"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":["autodeploy","deploy","github","php","webhook"],"created_at":"2024-11-15T15:16:05.912Z","updated_at":"2025-10-29T04:03:07.488Z","avatar_url":"https://github.com/setnemo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy automation via webhooks from Github\n\n\n## Add webhook\n\nOpen 'Webhooks' in repo settings and add new webhook, where Payload URL is `example.com/listener.php`. Choose 'Content type\n': `application/json`\n\n## Add 2 subdomains\n\nWhere alpha.example.com to alpha-testing, and beta.example.com for beta-testing.\n\n## Create 2 additional branches\n\nWhere alpha branch for alpha.example.com, and beta branch for beta.example.com.\n\n## Check path to subdomains directory and branch names\n\nExample deploy file (running in listener.php):\n```$xslt\ncd example.com                  // cd to dir with website\ngit fetch origin master         // fetching\ngit reset --hard origin/master  // reset to last commit\nchown -R www-data:www-data .    // your web-app user from nginx or apache2 settings\ngit checkout master             // switch to last version on branch\n```\n\n## Deploy\n\nAfter push action with message 'Merge pull...' in tracking branch deploy start automatically.\n\n## Enjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetnemo%2Fautodeploy-webhooks-github-via-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetnemo%2Fautodeploy-webhooks-github-via-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetnemo%2Fautodeploy-webhooks-github-via-php/lists"}