Improve CI pipeline

LHCb does: https://gitlab.cern.ch/lhcb-dirac/LHCbDIRAC/-/blob/master/.gitlab-ci.yml#L304-324

TODO:

Edited by Natthan.Pigoux