PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #177
You developed a Vertex AI ML pipeline that consists of preprocessing and training steps and each set of steps runs on a separate custom Docker image. Your organization uses GitHub and GitHub Actions…
The correct answer is C. Trigger GitHub Actions to run the tests, build custom Docker images, push the images to Artifact. To automate a Vertex AI ML retraining workflow with GitHub Actions as CI/CD, you should configure GitHub Actions to run tests, build custom Docker images, and push them directly to Artifact Registry.
Question
Options
- ATrigger a Cloud Build workflow to run tests, build custom Docker images, push the images to
- BTrigger GitHub Actions to run the tests, launch a job on Cloud Run to build custom Docker
- CTrigger GitHub Actions to run the tests, build custom Docker images, push the images to Artifact
- DTrigger GitHub Actions to run the tests, launch a Cloud Build workflow to build custom Docker
How the community answered
(48 responses)- A4% (2)
- B10% (5)
- C79% (38)
- D6% (3)
Why each option
To automate a Vertex AI ML retraining workflow with GitHub Actions as CI/CD, you should configure GitHub Actions to run tests, build custom Docker images, and push them directly to Artifact Registry.
Triggering a Cloud Build workflow from GitHub Actions for all steps introduces an unnecessary orchestration layer, as GitHub Actions is capable of managing these tasks directly, making it less minimal.
Cloud Run is a serverless platform for running containers, not primarily designed for building Docker images within a CI/CD pipeline, making it an unsuitable and inefficient choice for this specific task.
Since GitHub Actions is already the chosen CI/CD platform for running tests, extending it to directly build custom Docker images and push them to Artifact Registry within the same workflow minimizes complexity and external dependencies. This approach aligns with maximum flexibility by keeping all steps within a single, integrated CI/CD system.
While triggering Cloud Build for image building from GitHub Actions is a valid pattern, building images directly within GitHub Actions is often simpler and more flexible, especially when aiming to minimize steps, by avoiding an external build service.
Concept tested: CI/CD for ML pipelines on GCP; GitHub Actions
Source: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-docker
Topics
Community Discussion
No community discussion yet for this question.