Challenge 3: You break the build, you buy cake

< Previous Challenge - Home - Next Challenge >

Introduction

This task is all about automating things using Cloud Build.

Description

Once things look fine locally, set up a Cloud Build that’s triggered when code is pushed to the repository. The code base already includes a build configuration (cloudbuild.yaml), have a look at it to understand what it does. Make sure that the trigger uses that build configuration. Name the trigger CI (or continous-integration)

Success Criteria

  1. There’s a new Cloud Build push trigger called CI (or continous-integration)
  2. The trigger is connected to the Cloud Source Repository created in the previous challenge
  3. The trigger uses the provided (fully configured) build configuration from the repository
  4. And there’s at least one successful build

Tips

  • You will need to make some minor changes to the Python code base to have a successful run.
  • The qwiklabs environment only has quota in the global region, make sure that you pick that when you’re creating the trigger.

Learning Resources

How-to guides for Cloud Build

< Previous Challenge - Home - Next Challenge >