Go to file
Urko 28c7a03d9c feat: main 2023-02-26 10:59:33 +01:00
cfg feat: add config 2023-02-26 10:59:22 +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
.env.example feat: add .env.example 2023-02-26 10:59:08 +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 feat: main 2023-02-26 10:59:33 +01:00
go.sum feat: main 2023-02-26 10:59:33 +01:00
main.go feat: main 2023-02-26 10:59:33 +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