refactor(ci): enable running ci on release branches
refactor(ci): enable running ci on release branches

Added a few variable to that can be used to have the installer
run with images from release branches.

Also, refactored to remove duplicated code using functions.

Signed-off-by: kmova <6a28dfa88869c0f71365518480e309e6698873e0@openebs.io>

openebs/maya,openebs/maya,prateekpandey14/maya,AmitKumarDas/maya,openebs/maya,AmitKumarDas/maya,prateekpandey14/maya