Building a Blog - Part 3: CI and deployment

21 May 2020

Now that I've constructed my site and tested. I need an automated way to running and deploying autonomously.

CI

My repository is designed such that the content of my blog is seperated from the web project. It currently contain content and web, the latter containing the Gatsby project.

Therefore, after each time I add content, I will need CI to deploy that content, and each time I update web, CI needs to build and run my tests.

Deployment

While I could of had my deployment process deploy master each time. I wanted to pin my project to a version.

To do that, I checkout master, copy the content to a temp directory. Then I checkout the version I want and replace the content there with latest one.

I then push to Azure Blob Storage.

© Copyright 2020, dctcheng. All Rights Reserved