Cloud Run with Github Actions

Part 2 of “A website with Strapi 3 — Next.js — Google Cloud Run”

Floriel
Full Human

--

In the second part of this series, we set up continuous deployment for our Strapi application deployed on Google Cloud Run. Continuous deployment is setup with Github Actions.

Github Actions

Github Actions is one of the most recent solutions for continuous integrations and deployment. It is deeply integrated within Github, which makes it a natural choice. The price is in line with the other solutions used in this series. It is free for open-source projects and has a free tier otherwise.

In your repository, you can have three different branches:

  • Master branch where the production version of your application lives
  • Staging branch that acts as a buffer to make sure what you want to push to live is what you expect
  • Development branch where you can develop locally and where you will push your changes regularly

The workflow is as follows. When you are satisfied with what you have in development and wish to push to production, you can merge the branch development to staging. Staging will be deployed, and you can safely verify your work. Once verified, you can merge the staging branch to the production branch…

--

--

Floriel
Full Human

Software Engineer and author of PurgeCSS — Writing articles about web development regularly