build docker image only for particular branches

1 job for rc3.1 in 1 minute and 26 seconds (queued for 139 minutes and 27 seconds)