hands-on lab

Setting up a Google Cloud Build Configuration to Build Docker Application

Up to 40m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

When developing applications, one of the most interesting and useful things is automation. Most of the engineers try to automate as many things as they can. One of the most automated parts is code integration and code deployment (mostly known as CI/CD). In these phases, there is a step that represents the build of your application. This is very important because after having built your application, you deploy it in one of your environments. Because of its importance, Google provides you with the possibility to use Cloud Build. Google Cloud Build is a flexible and serverless service that allows you to create your build pipelines and then use them without worrying about server infrastructure.

In this lab, you will clone a public git repository that contains a simple docker application, you will create a configuration file to define the steps of your build pipeline, and you will execute it.

Learning Objectives

Upon completion of this lab you will be able to:

  • Understand how to structure a cloud build configuration
  • Set the correct steps to build a docker application
  • Define a cloud build step to store the docker image just built

Intended Audience

This lab is intended for:

  • Google Professional Cloud DevOps Engineers (PCDE) certification candidates
  • Google Professional Machine Learning Engineers (MLE) certification candidates
  • DevOps Engineers that want to create or migrate a DevOps build solution on Google Cloud


Basic Docker and Git prerequisites are preferred but not required.


March 1st, 2022 - Updated the instructions and screenshots to reflect the latest UI

Environment before

Environment after

About the author
Learning paths

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.

Covered topics
Lab steps
Signing In to the Google Cloud Console
Cloning the Docker Application Git Repository
Setting up the Cloud Build Configuration
Trigger the Cloud Build Pipeline