Submodules in your DevOps CI/CD for Hugo

Submodules in your DevOps CI/CD for Hugo

When you are building your site with the Hugo website generator you can load the themes as a Submodule in your repository with the following command:

git submodule add https://github.com/jpescador/hugo-future-imperfect.git themes/hugo-future-imperfect

But when you then commit and push your changes to your Git repository in Azure DevOps and run the following command:

Hugo -v

In your build pipeline and then go to your website you will see that the theme is missing from your site

To solve this problem change the following setting (marked yellow) in your Build Pipeline.

Submodules in DevOps
Submodules in DevOps

André van den Berg
André van den Berg
Consultant, Blogger, Speaker, Meetup/Event Attendee, Owner of MyStickerBox

André is widely interested, eager to learn and a DevOps enthusiast. He has experience with various projects in the field of lift and shift of on-premise environments to Azure Cloud, migrating databases and web servers of customers at suppliers to their own Azure environments together with the supplier. In addition, he also set up standard Bicep Blueprints for rolling out Azure resources in a consistent way at multiple customers who were managed by MSP. André likes to share his knowledge and is a real team player. In addition, he can also work well independently and is pleasant to deal with.