Go to file
Urko 49126da9d9 feat: update gitignore 2023-02-26 10:59:00 +01:00
cfg feat: parameterize CI pipeline 2023-02-25 22:32:10 +01:00
internal/watcher feat: test watcher 2023-02-26 10:58:55 +01:00
pkg/watcher refactor: use internal/pkg to refactor structure 2023-02-26 09:19:27 +01:00
.gitignore feat: update gitignore 2023-02-26 10:59:00 +01:00
README.md feat: add readme 2023-02-26 10:58:32 +01:00
go.mod refactor: use internal/pkg to refactor structure 2023-02-26 09:19:27 +01:00
go.sum feat: parameterize CI pipeline 2023-02-25 22:32:10 +01:00
main.go refactor: use internal/pkg to refactor structure 2023-02-26 09:19:27 +01:00

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

Installation

Requirements