<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Gatsby on Mike Bell - Blog &amp; Stuff</title><link>https://mikebell.io/tags/gatsby/</link><description>Recent content in Gatsby on Mike Bell - Blog &amp; Stuff</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>hello@mikebell.io (Mike Bell)</managingEditor><webMaster>hello@mikebell.io (Mike Bell)</webMaster><copyright>© 2026 Mike Bell</copyright><lastBuildDate>Sun, 07 Jun 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://mikebell.io/tags/gatsby/index.xml" rel="self" type="application/rss+xml"/><item><title>Upgrade to Gatsby and AWS</title><link>https://mikebell.io/posts/upgrade-to-gatsby-and-aws/</link><pubDate>Sun, 07 Jun 2020 00:00:00 +0000</pubDate><author>hello@mikebell.io (Mike Bell)</author><guid>https://mikebell.io/posts/upgrade-to-gatsby-and-aws/</guid><description>
&lt;p>It&amp;rsquo;s been over a year since I last blogged, there are a number of reasons:&lt;/p>
&lt;ul>
&lt;li>Broken realease pipeline (well not quite but it was messy)&lt;/li>
&lt;li>I wanted to move everything to docker&lt;/li>
&lt;li>I hated the way the blog looked&lt;/li>
&lt;/ul>
&lt;p>A few weeks ago I started to the move to GatsbyJS after a few false starts I finally got there. Once I had everything migrated including updating all the frontmatter (this took ages), I was ready to deploy it. I have multiple server on DigitalOcean all capable of hosting a static blog but decided that I wanted to offload everything to AWS to learn more about the tools available.&lt;/p>
&lt;h2 class="relative group">The CD pipeline
&lt;div id="the-cd-pipeline" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#the-cd-pipeline" aria-label="Anchor">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;p>Since mine was in a bit a state (Vault doesn&amp;rsquo;t auto unseal), I wanted to play around with other tools outside of Concourse.&lt;/p>
&lt;p>Firstly I started with AWS Codebuild, it&amp;rsquo;s a bit odd when you&amp;rsquo;re used to Concourse but there&amp;rsquo;s enough documentation out there to figure it all out. One of the blockers I found was that when running &lt;code>npm build&lt;/code> it wouldn&amp;rsquo;t pick up some of the folders. I never did get round to figuring out what the issue was with it so decided to abandon that and try Github Actions.&lt;/p>
&lt;p>With Github Actions it was dead easy to setup and the integrated secrets management was very nice, I really like what they&amp;rsquo;ve done with it and I&amp;rsquo;ll be interested in exploring more of what&amp;rsquo;s on offer there.&lt;/p>
&lt;p>So at the moment the blog automatically builds on every push to the repository. This is the flow:&lt;/p>
&lt;p>&lt;strong>Push&lt;/strong> &amp;gt; &lt;strong>Github Actions Build&lt;/strong> &amp;gt; &lt;strong>Publish to S3&lt;/strong> &amp;gt; &lt;strong>Invalidate Cloudfront&lt;/strong>&lt;/p>
&lt;p>I really like this workflow as it&amp;rsquo;s about as hands off as possible, this means I can just blog!&lt;/p>
&lt;p>If your interested in the build file it can be found &lt;a
href="https://github.com/mikebell/mikebell.io/blob/master/.github/workflows/main.yml"
target="_blank"
>here&lt;/a>.&lt;/p>
&lt;p>Thanks for reading via RSS!&lt;/p>
&lt;p>Send me a message on &lt;a href="https://remotelab.uk/mikebell">Mastodon&lt;/a> or &lt;a href="mailto:hello@mikebell.io">email me&lt;/a>&lt;/p></description></item></channel></rss>