Blog to Gitlab

First things
I’ve been considering moving camp from GitHub to GitLab for a while. The primary reason is that GitHub is owned by Microsoft and GitLab… isn’t. I figured that the process for generating blog content on one platform wouldn’t be too different on the other, and by and large, I wasn’t disappointed. There were a couple of gotchas that had me scratching my head for a while, but some scouring of the interwebs eventally proved fruitful and I found the solutions.
I’ll be the first to admit that I’m not a stack developer and most of my discovery of Git and Hugo has been in the style of monkey see, monkey do. It’s possible that I missed something along the way that would have helped. Having said that, my stuff does work so hopefully the following is going to be of some use to someone down the line.
Repo & DNS
I created the ‘New Project/Repository’ by choosing ‘Pages/Hugo’ from the drop-down and called it blog.simons.earth, having my own domain to use. I created the CNAME and TXT records on my control panel as requested.
I changed the remote name on my local blog folder and pushed the latest version.
Errors
At this point I started getting errors during the test phase.
|
|
I searched and eventully found a similar error report on the GitLab forum that suggested adding:
|
|
to the end of the job.
Conclusion
This fixed the error for me and now the commit process works just fine.