Configuration and content for my personal blog.
For more detail on this approach to deploying a static site, see the write up on the blog: Hello World | Hosting this Blog on Kubernetes
Prerequisites:
- Go
- g++ (gcc-c++)
Building the site:
# this will install hugo if not present
make build
Serving a development version of the site for live preview:
make serve
Remove generated files:
make clean
Remove generated files and hugo binary
make full-clean
To publish a post, I simply commit and push to this repo.
git add .
git commit -m "add new post"
git push
This triggers a Github Actions workflow which renders the site to the live
branch which is served by a nginx pod with a git-sync sidecar.