NOTE: This repository is no longer maintained. Kindly use greenpau/caddy-git
Git module for Caddy v2
The module is helpful in creating git clients that pull from the given repository at regular intervals of time (poll service) or whenever there is a change in the repository (webhook service). On a successful pull it runs the specified commands to automate deployment.
Simply add the following import to
cmd/caddy/main.go
and build the caddy binary:
package main
import (
caddycmd "github.com/caddyserver/caddy/v2/cmd"
// plug in Caddy modules here
_ "github.com/caddyserver/caddy/v2/modules/standard"
_ "github.com/vrongmeal/caddygit/module/git" // Yay!!!
)
func main() {
caddycmd.Main()
}
OR you can use xcaddy to build:
$ xcaddy build v2.1.1 \
--with github.com/vrongmeal/caddygit/module/git
- Support for Caddyfile
- Webhook service