Continuous Deployment: Automating GCP Deployments with Artifact Registry and Cloud Run

The references to a blog in this post are for my older blog that was built from scratch using Go. My new blog is built using Hugo and the Papermod. In the previous post, we created our GitHub Actions workflow, build script, and Dockerfile. In this post, we will focus on setting up GCP and enabling the APIs that allow our workflow to automate each step of the deployment process. Here’s what we’ll cover: ...

August 26, 2024 · 10 min · 1975 words · Tim Engle

Continuous Deployment: Creating a GitHub Workflow, Build Script, and Dockerfile

The references to a blog in this post are for my older blog that was built from scratch using Go. My new blog is built using Hugo and the Papermod. In the previous post, the importance of setting up continuous deployment (CD) was introduced, and a basic GitHub Actions workflow was created to automate code deployments. In this section of the series, we’ll build on that foundation by discussing three essential files needed for fully automating the deployment process. The first is a more advanced GitHub Actions workflow that will handle all the steps required to deploy updated containers to GCP. The second is a build script that will create a binary of the Go application compatible with the operating system running inside the Docker container. Finally, we’ll cover the Dockerfile, which is responsible for building the container image that will be deployed and hosted by Google Cloud Platform. ...

August 22, 2024 · 5 min · 882 words · Tim Engle

Continuous Deployment: Getting Started with CD for Containerized Go Apps Using GitHub Actions & GCP

Introduction to This Series The references to a blog in this post are for my older blog that was built from scratch using Go. My new blog is built using Hugo and the Papermod. This post serves as an introduction to this series on creating a CD pipeline for containerized Go apps using GitHub Actions and GCP. The Goal Currently this blog is ready to host, but still needs some features that I would like to add in order for it to make it more engaging for user, easier for my to add posts, simpler to update posts, and add the ability to view metrics on posts. ...

August 14, 2024 · 2 min · 327 words · Tim Engle

Dynamic File Serving With Embedded File System and Object Storage in Go File Serving With Embedded File System and Object Storage in Go

Introduction The references to a blog in this post are for my older blog that was built from scratch using Go. My new blog is built using Hugo and the Papermod. In my current project, this blog, I have a folder of static files embedded directly into the server’s binary. While this is nice to have, I am concerned with scaling, so I would also like to keep these static files in an object storage container like an S3 bucket. ...

August 14, 2024 · 4 min · 794 words · Tim Engle