Build and Push the Image on Release
Automate container builds when you tag a release.
Build Only on Release
You do not ship an image on every commit. The release step builds and publishes a container only when you mark a version as ready. 📦
Trigger on a Tag
A common pattern fires the build when you push a git tag like v1.2.0, so a deliberate version, not a casual push, starts the deploy.
on:
push:
tags: ["v*"]All lessons in this course
- What CI/CD Means for Models
- A GitHub Actions Workflow for ML
- Gate Merges on Model Quality
- Build and Push the Image on Release