Push docker image to CI_BUILD_REF
Hello
Currently the code push the docker image to $CI_REGISTRY_IMAGE:CI_BUILD_REF_NAME
, this make is impossible to use K8S deployment rollback feature.
It also make it impossible to use automatic rollback in the future (In the future, once automatic rollback will be implemented, the deployment controller will roll back a Deployment as soon as it observes such a condition.
https://kubernetes.io/docs/user-guide/deployments/#rolling-back-a-deployment)
Pros:
Support for K8S native deployment rollback feature.
Automatic rollback support sometime in the future.
Cons:
Something need to clean up the old images.