Droneci

Deploying a Hugo website using Gitea and DroneCI

5 minute read Published:

Building a continuous delivery pipeline for static websites generated with Hugo
This blog is created using the Hugo static site generator. I used to deploy new posts using a bare git repository on the target server and a post-receive hook to build the posts and copy them to the public web server directory. I followed this tutorial by Digital Ocean. This worked well enough but, to deploy the blog, I always needed to push to a separate git remote. Also I had to set up SSH access to the server and the new git remote if I wanted to write posts on another machine.