Skip to main content
Welcome back! In this Sprint 04 review, we’ll recap our objectives and confirm that each has been met, from configuring Cloud Build to publishing container images.

Sprint 04 Goals

Implementation Steps

1. Configure Google Cloud Build

We defined build steps in a cloudbuild.yaml file to install dependencies, run tests, and build the Docker image:
Ensure the Cloud Build service account has roles/artifactregistry.writer and roles/storage.admin for pushing images.
We created a trigger so that any push to the main branch starts a build:

3. Automate Docker Image Builds

Our Dockerfile defines how the application is containerized:
This file ensures dependencies install and the app runs on port 8080.

4. Publish to Artifact Registry

After building, Cloud Build pushes to Google Cloud Artifact Registry:
Verify that your Artifact Registry repository is in the same region as your Cloud Build trigger to avoid latency issues.

Results and Next Steps

  • All build steps in cloudbuild.yaml execute successfully.
  • GitHub pushes to main automatically trigger Cloud Build.
  • Docker images build without manual intervention.
  • Images are stored in Artifact Registry and available for deployment.
With Sprint 04 complete, our CI/CD pipeline is fully automated on Google Cloud Platform. Thank you, and see you in the next lesson!

References

Watch Video