Hands-on Tutorials

Deploy To Google Cloud Run Using Github Actions

A CI/CD Solution That Scales To Zero With Actions And Cloud Run

Dylan Roy
Towards Data Science
8 min readNov 6, 2020

--

Image by Author

Background

There’s a lot of overlap between the projects I work on in my own time, and when I am on the clock working with the team to develop solutions when it comes to two aspects. Due to my limited free time when developing on my own, and our team’s smaller size the solutions I will always favor are ones that are simple, and scale down to zero with no operational effort.

So when looking for a CI/CD solution that would support one of my favorite products that Google Cloud Platform (GCP) offers called Cloud Run I wanted to take a look at Github Actions. Github Actions is very similar to Cloud Run in this way as you are only charged for what you use.

Not only are these services fully managed, and scale down to zero, but they also have an added benefit that I love to take advantage of when experimenting on my own which is both of these services have a free tier 🙌

I was able to get these two services to play nice together after a little bit of effort. I stumbled a lot when it came to configuring the roles and permissions due to GCP’s unpredictable behavior behind their roles, but thankfully wrote…

--

--

Engineer & Side Project Junkie sharing what I am working on so readers like you can benefit from my experiences. Subscribe here for even more (dylanroy.com)