raychenfj / github-webhook

my github webhook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-webhook

I'm a very lazy person ,I hate to deploy my projects again and again manually. So I decide to write a webhook to do it automatically. Save my trouble :) .

It's simple but work for me. Basically, it just do some verification and then run my deployment script.

Here is how to the config looks like now. Object key is a git project name, which ref and events should trigger deployment, ref can be any branch or tag, pretty self-explain I guess.

It reads password, token, secret from my global env, so I don't have to hard code them, and it's safer. Maybe a little problem if need to run on multiple machines, since need to config the global env for every machines, but this is not my case. I have one machine only :) !!!

About

my github webhook


Languages

Language:JavaScript 100.0%