{"id":15171816,"url":"https://github.com/psi-4ward/docker-webhooks","last_synced_at":"2025-10-26T00:30:49.757Z","repository":{"id":31476350,"uuid":"35040448","full_name":"psi-4ward/docker-webhooks","owner":"psi-4ward","description":"Predefined `docker exec` using HTTP-POST for Gitlab/Github Webhooks","archived":false,"fork":false,"pushed_at":"2015-05-04T16:03:25.000Z","size":124,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T21:49:27.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/psi-4ward.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":"2015-05-04T14:47:04.000Z","updated_at":"2022-03-17T11:05:19.000Z","dependencies_parsed_at":"2022-08-31T18:01:17.619Z","dependency_job_id":null,"html_url":"https://github.com/psi-4ward/docker-webhooks","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/psi-4ward%2Fdocker-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psi-4ward%2Fdocker-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psi-4ward%2Fdocker-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psi-4ward%2Fdocker-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psi-4ward","download_url":"https://codeload.github.com/psi-4ward/docker-webhooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238229940,"owners_count":19437723,"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-09-27T09:04:08.135Z","updated_at":"2025-10-26T00:30:49.487Z","avatar_url":"https://github.com/psi-4ward.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-webhooks\nPredefined `docker exec` using HTTP-POST for Gitlab/Github Webhooks\n\n## Install\n\n* Make sure the app can read/write to `DOCKER_HOST` (default: `/var/run/docker.sock`)\n\n```shell\nnpm install docker-webhooks\ncd docker-webhooks\nsudo node app.js\n```\n\n## Configuration\n\nCreate YAML files in `/tokens`\n\n```yaml\n# Container Name or ID\ncontainer: mywebapp\n\n# Secret token\ntoken: ahMo3zoh0ahmei5xeCo9jebae2gooz\n\n# Tasks to execute\ntasks:\n  # Name to identify this task\n  - name: Update Frontend\n    # Print stdout from docker exec\n    showStdout: true\n\n    # Some conditions checked against the HTTP-Body JSON\n    conditions:\n      - ref: \"refs/heads/master\"\n\n    # Commands to execute, use docker CMD syntax\n    exec:\n      - [\"/bin/git\", \"pull\"]\n      - [\"/bin/npm\", \"install\"]\n      - gulp\n\n  - name: Another Task\n    exec:\n      - [\"echo\", \"i am another task without conditions\"]\n```\n\n\n## Authors\n* Christoph Wiechert\n\n\n\n## License\n  [MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsi-4ward%2Fdocker-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsi-4ward%2Fdocker-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsi-4ward%2Fdocker-webhooks/lists"}