Dynamically pick Docker image based on branch name
This is an adaptation of Em's dynamic docker image.
Look at the branch name to pick the Docker image from the matching
release. For instance, if the pipeline is run on the apertis/v2020
branch, choose the v2020-package-source-builder
image.
Also do the same if the branch name is apertis/v2020-security
, and if
the branch name is wip/em/land-to-v2021dev3-this-patch
use the
v2021dev3-package-source-builder
image.
If no release name is specified in the current branch name, fall back to extracting it from the name of the default branch.
This time handle the fact that older releases do not use the GitLab container registry.
Signed-off-by: Ritesh Raj Sarraf ritesh.sarraf@collabora.com