Introduction
Building images in a CI pipeline automates creating container images whenever code changes. This ensures your app is always packaged and ready to run in any environment without manual steps.
When you want to automatically create a new app version image after every code update.
When you need to test your app inside a container before deploying it.
When you want to push the built image to a registry for sharing or deployment.
When you want to catch build errors early by building images in a controlled environment.
When you want to keep your deployment process consistent and repeatable.