I am trying to achieve the the below flow possible using gitlab CI. As I will be having multiple branches such as(dev-*, release- *, feature- *) with the will to manage them. Initially I just want to know if I can achieve this flow. I tried using an "if" statement in gitlabCI but as I have just started using it, I am not able to create and understand the features provided by gitlab. The desire flow in gitlabCI:
if (MR from feature* to Dev OR MR from feature* to release)
{
echo "Unit Testing";
echo "Code quality analysis";
}
if (feature* MERGE to Dev)
{
echo "Build Docker image with tag $Build_ID";
}
if (feature* MERGE to Release:<release_version>)
{
echo "Build docker image with $release_version"
}
MR refer to merge request.
feature, dev, release are branches.