My team developing a kubernetes app in Gitlab using Helm. As part of our review process we deploy an instance of our app into a namespace on MR. Docker images are built and tagged either as latest (for current master stable) or with the branch of the changes.
I would like for the review app to automatically use the latest of the branch if it exists else use latest, hopefully without needing intervention to modify the image tags by hand.
What is the cleanest way to do this? I've looked a number of places