version 1.4
This pipeline builds a container image for the application and applies two tags:
A unique tag based on the commit SHA (${CI_COMMIT_SHORT_SHA}) for traceability and rollback.
The latest tag to always point to the most recent successful build for convenience.
Both tags are pushed to the GitLab Container Registry, ensuring version history is preserved while maintaining an easy-to-use reference for deployments.