Deploy to CloudRun#

In this lab you will setup a serverless deployment with CloudRun. CloudRun is a serverless product offered by Google where you supply a container and Google runs your container for you. The great thing about CloudRun is that your application doesn’t incur charges when it’s not receiving traffic. In class I demonstrate how to launch your container on CloudRun.

CloudRun won’t use the image you have on GitHub so you have to create a build pipeline in Google. Watch the recording for full details. The basic procedure is:

  1. Create a new CloudRun service

  2. Set the service to continuously deploy new revisions from a source repository

  3. Authenticate Google to your GitHub account

  4. Set the build type to Dockerfile

  5. Set the necessary environment variables