Home / Companies / Google Cloud / Blog / Post Details
Content Deep Dive

Automatic Deployment of Hugo Sites on Firebase Hosting and Drafts on Cloud Run

Blog post from Google Cloud

Post Details
Company
Date Published
Author
-
Word Count
1,069
Language
English
Hacker News Points
-
Summary

James Ward, a Developer Advocate, shares his experience of migrating his blog from WordPress to Hugo, a static site generator, and outlines the process of setting up automatic deployment for both live and draft versions of the site using Firebase Hosting and Cloud Run. By leveraging Hugo's ability to use plain files stored in GitHub, Ward describes the creation of a continuous delivery pipeline with Cloud Build, facilitating the deployment of production changes to Firebase Hosting and draft reviews on Cloud Run. The setup involves configuring Cloud Build triggers, managing permissions for Cloud Run and Firebase Hosting, and handling theme changes through git submodules, allowing for seamless deployment of updates and draft viewing across different branches. He provides detailed instructions for both setting up new and existing Hugo projects, highlights the importance of version control and testing, and encourages feedback from those who encounter challenges in implementing similar setups.