A lightweight Docker container that listens for Forgejo/Gitea push webhooks and automatically rebuilds a Hugo site.
No CI runners, no Docker-in-Docker — just a single container that clones, builds, and deploys.
How it works
- You push to your Hugo site repo
- Forgejo sends a webhook POST to the container
- The container validates the HMAC signature, pulls the latest code, and runs
hugo --minify - Built site is written to a volume-mounted directory (e.g. Apache’s DocumentRoot)
Components
- Hugo extended edition
- adnanh/webhook — lightweight webhook receiver
- Alpine Linux