IMAGE_TAG should not be determined directly from the branch name
Currently, IMAGE_TAG: "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME", and decide whether to create a new image for MR based on CREATE_NEW_CONTAINER=$(docker manifest inspect $CONTAINER_IMAGE:$IMAGE_TAG > /dev/null ; echo $?), but this will cause a problem:
If the branch name deleted, and then created again, if the dependencies in the two branches are different, obviously no new image will be built for the new dependencies.
Edited by YAMANAIAME