Skip to content

PAM-AS/github-webhooks-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-webhooks-base

A docker image to build upon that listens to github webhooks.

Credit and reference:

Config

Environment variables

Set a custom webhook port (default is 41414)

WEBHOOKS_PORT=41414

Set environment variable for the repos.json config (see repos.json below for what this file does).

REPOS_JSON_PATH=/path/to/repos.json

repos.json

This is how you tell the webhook listener what to do when data is received.

{
    "razius/puppet": {
        "path": "/home/puppet",
        "key": "MyVerySecretKey",
        "action": [["git", "pull", "origin", "master"]]
    },
    "d3non/somerandomexample/branch:live": {
        "path": "/home/exampleapp",
        "key": "MyVerySecretKey",
        "action": [
          ["git", "pull", "origin", "live"],
          ["echo", "execute", "some", "commands", "..."]
        ]
    }
}

About

A docker image to build upon that listens to github webhooks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages