add condition to build docker image

Merged MUSSET Paul requested to merge ci-condition into dev

Merge request reports