Urko a4ce793707 | ||
---|---|---|
cfg | ||
internal/watcher | ||
pkg/watcher | ||
.env.example | ||
.gitignore | ||
Makefile | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go |
README.md
git-webhook-ci
Tool to automatize your deploy based on file write changes
Context
As a security risk that could be allow a webhook listener on a VPS for your git repository, I've decided to create this package which is a listener to file changes on write. This will trigger a bash script which you shold place on your server to run desired tasks. In my case I've done this to run a bash deploy command like
- git pull
- build
- move build to desired dir
- restart services like nginx or whatever