Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Labs

Cloud Run Deployments with CI/CD

In this lab, we’ll configure a continuous deployment pipeline for Cloud Run using Cloud Build. We'll set up Cloud Source Repositories and configure Cloud Build to automate our deployment pipeline. Then, we'll commit changes to Git and observe the fully automated pipeline as it builds and deploys our new image into service. You should be familiar with the GCP console, Cloud Shell, and the basics of Git to perform this hands-on lab.

Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 03, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Enable APIs and Create the Git Repo
    1. Enable APIs for Cloud Run and Cloud Build.
    2. Create a Git repo in Cloud Source Repositories.
    3. Activate the Cloud Shell.
    4. Clone your empty repo into your Cloud Shell terminal.
  2. Challenge

    Commit Application Code
    1. Add code for a functioning container that provides a web service on port 8080 (you can use the example Amazing App code as mentioned in the lab information).
    2. Use Git to add the new code to your repository and commit your changes.

    Note: The first time you try to commit with Git, you will need to configure your default identity:

    git config --global user.email "[email protected]"
    
    git config --global user.name "Your Name"
    
  3. Challenge

    Set Up Cloud Build
    1. Add a Cloud Build YAML configuration file to your repo. It must contain build steps that build the container, push it to GCR and deploy it to Cloud Run (with the correct options for region, platform and authentication). See https://cloud.google.com/build/docs/configuring-builds/create-basic-configuration for an example.
    2. Commit the changes.
  4. Challenge

    Set Up Build Triggers
    1. Grant Cloud Run Admin and Service Account User roles to the Cloud Build service account (this can be done from the Cloud Run settings page).
    2. Add a build trigger to the repo with this configuration:
      • Event: Push to a branch
      • Source: cddemo
      • Branch: ^master$
      • Build configuration: Cloud Build configuration file
    3. Make a change to the application code.
    4. Commit the changes and observe the automated deployment.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight