Continuous deployment in Google Cloud
So far we've used Cloud Source Repositories to privately host source code, Cloud Deployment Manager to provision cloud environments, Container Builder to automate builds, and GCR to privately host images. With the addition of Container Builder build triggers, these services can be combined to construct powerful, fully managed solutions for service delivery.
To tie these services together, let's build upon previous examples to create a true Continuous Delivery pipeline. The desired behavior for the pipeline will be to build a new container image for every commit pushed to our Git repository. The pipeline creates a new Compute Engine instance template, configured to use the new image in a container VM. Lastly, a Cloud Deployment Manager deployment is updated to roll out the new template to a fleet of servers in a managed instance group, illustrated in the following diagram:
The relevant resources to accomplish this are included in chapter_12/example_04
of...