Revising and Redeploying a Website to Cloud Run

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

Launching a website is rarely a “one-and-done” situation. To remain relevant, website apps must be frequently updated. In this hands-on lab, you’ll have an opportunity to explore how a website app currently deployed on Cloud Run is modified, re-compiled, re-built, and re-deployed.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Retrieve and Activate Resource Files

In Cloud Shell, clone the desired GitHub repo and run the setup script.

Containerize the App and Store the Disk Image

Use the appropriate gcloud command invoking Cloud Build to containerize the web app and then store the resulting disk image in Container Registry.

Deploy the Disk Image to Cloud Run

In Cloud Shell, execute the proper command to deploy the stored disk image to Cloud Run.

Update Website

Make the desired changes to source files, then re-compile, containerize, and deploy.

Additional Resources

You just received notice from your manager that an update has been approved for your website app and you need to implement it immediately. You use Cloud Shell to make the change and re-compile the app before using Cloud Build to containerize it and then deploy to Cloud Run. Once the app is live, you make sure the site has been updated as expected.


GitHub repo:

Folder: revising-and-redeploying-a-website-to-cloud-run

App name: webcat

Versions: 1.0.0 and 2.0.0

Region: us-east1

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?