This project is aimed at to create simple github webhook server for quick and dirty CI/CD integration.
- NodeJs
- Vercel/Micro
- Edit config json
{
[repo name]: {
[branch name]: {
"cwd": "<where should the program run>",
"cmd": [
// List of string of command
]
}
}
}
// For example
{
"simple-github-webhook": {
"main": {
"cwd": "/home/tom555my/repo/simple-github-webhook",
"cmd": [
"git checkout main",
"git pull origin main",
"yarn",
"yarn build",
"yarn start"
]
}
}
}- Start the server
yarn start
- Config your github repo webhook
https://github.com/%username%/%your-repo%/settings/hooks
MIT
Copyright (c) 2020-present, Chung Kwok Cheong