A typical container pipeline moves data and control through an ordered flow:
- Trigger: A code development event triggers Cloud Build.
- Fetch source: Cloud Build pulls application source code from the source control repository.
- Fetch dependencies: Cloud Build pulls required dependencies, such as third-party JAR files, from Artifact Registry or their source locations.
- Build and validate: Cloud Build runs the build and validation, including static analysis and unit testing.
- Store artifact: If the build succeeds, Cloud Build creates the container image and pushes it to the container repository in Artifact Registry.
- Deploy: A Cloud Deploy pipeline is triggered, pulls the container image from the repository, and deploys it to a GKE environment.