<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>DevOps on jeffcarp</title>
    <link>/categories/devops/</link>
    <description>Recent content in DevOps on jeffcarp</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 03 Feb 2019 23:19:44 +0000</lastBuildDate>
    <atom:link href="/categories/devops/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How I Host Static Sites With Automatic Deploy on Green</title>
      <link>/posts/2019/how-i-host-static-sites-with-automatic-deploy-on-green/</link>
      <pubDate>Sun, 03 Feb 2019 23:19:44 +0000</pubDate>
      <guid>/posts/2019/how-i-host-static-sites-with-automatic-deploy-on-green/</guid>
      <description>&lt;p&gt;This site, &lt;a href=&#34;https://www.jeffcarp.com/&#34;&gt;jeffcarp.com&lt;/a&gt;, is written in markdown&#xA;and uses the &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo static site generator&lt;/a&gt;. This post walks&#xA;you through how I set automatic building, testing, and deployment to Firebase&#xA;hosting.&lt;/p&gt;&#xA;&lt;h2 id=&#34;project-setup&#34;&gt;Project Setup&lt;/h2&gt;&#xA;&lt;p&gt;I assume we&amp;rsquo;re starting from a working Hugo project. For more on how to set&#xA;that up, see the &lt;a href=&#34;https://gohugo.io/getting-started/quick-start/&#34;&gt;Hugo docs&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;testing-setup&#34;&gt;Testing Setup&lt;/h2&gt;&#xA;&lt;p&gt;I want the site to be Deploy-on-Green (i.e. only if it passes the tests). The&#xA;CI setup I use is &lt;a href=&#34;https://cloud.google.com/cloud-build/docs/&#34;&gt;GCP Cloud&#xA;Build&lt;/a&gt;. I develop and debug these&#xA;tests locally using the &lt;code&gt;local-cloud-build&lt;/code&gt; command &lt;a href=&#34;https://cloud.google.com/cloud-build/docs/build-debug-locally&#34;&gt;documented&#xA;here&lt;/a&gt;. The steps&#xA;I want are:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
