🎉 New Course

Ultimate DevOps Real-World Project Implementation on AWS

My newest course. Real-world DevOps on AWS with production architecture.

$15.99 $84.99 81% OFF

Coupon Code

Enroll Now on Udemy
MLOps CI/CD GitHub Actions ArgoCD
2 min read 292 words

CI/CD for ML: Same GitHub Actions, Different Artifact

Your CI/CD pipeline deploys code. Ours deploys models. Same tools: GitHub Actions, ArgoCD, Docker, DVC, MLflow. Here is the 7-job ML pipeline.

Your CI/CD pipeline deploys code. Ours deploys models. Same tools.

GitHub Actions. ArgoCD. Docker. DVC. MLflow. Same stack you already run. The only difference is what triggers the pipeline and what gets deployed.

Code pipeline: git push > build > test > deploy ML pipeline: data change > retrain > evaluate > deploy

CI/CD for ML


The 7-Job ML Pipeline

JobWhat It DoesFailure Action
0. Preflight7 infra checks in 5 min (MLflow up? MinIO? DVC?)Fail fast
1. Data + FeaturesDVC pulls dataset, feature engineering runsStop on schema error
2. Train + GateTrain candidate, compare vs championIf candidate loses, skip Jobs 3-6
3. ExportGet champion model URI from MLflowStop on registry error
4. BuildBuild transformer containerStop on build error
5. GitOpsPatch KServe YAML, push to gitArgoCD watches repo
6. VerifyArgoCD syncs, health check, 3 smoke testsRollback on failure

Jobs 3 and 4 run in parallel.


The Quality Gate (Job 2)

This is the part most ML pipelines get wrong. They deploy every model that finishes training. No comparison. No gate. No safety net.

Our pipeline has a hard stop at Job 2. If the new model is not better than the current champion, the deploy never happens. The workflow succeeds but deployment is skipped.

That’s not a failure. That’s the pipeline protecting production.


The GitOps Flow

Job 5 patches the KServe YAML with the new model URI and pushes to git. ArgoCD watches the repo. When the manifest changes, ArgoCD syncs automatically.

No kubectl apply. No manual deploys. Git is the source of truth. (More on model versioning in Part 16: ML Governance.)


This is Part 17 of the MLOps for DevOps Engineers series. For weekly updates, join the newsletter.

Share this article
K
Kalyan Reddy Daida

Instructor with 383,000+ students across 21 courses on AWS, Azure, GCP, Terraform, Kubernetes & DevOps. Sharing real-world patterns from production environments.

Enjoyed this? Get more in your inbox.

Weekly DevOps & Cloud insights from a 383K+ Udemy instructor