Hands-on lab – building, creating, pushing, and deploying a container to Cloud Run using Cloud Build triggers
The goal of this hands-on lab is to provide a step-by-step illustration of how code can be automatically built, pushed, and deployed to a compute option called Cloud Run.
Cloud Run
Cloud Run is GCP's managed serverless compute option, which deploys containers and abstracts away the infrastructure management. Cloud Run can scale up or down from zero based on traffic and charges on a pay-per-use model.
The hands-on lab implements concepts across Cloud Build and Container Registry. The following is a high-level breakdown of the steps involved. Each of the steps is further elaborated into multiple sub-steps:
- Creating an empty repository in Source Repositories
- Creating a Cloud Build trigger
- Adding code and pushing it to the master branch
- Code walk-through to build, create, push, and deploy the container image
- Viewing the build results...