InvalidImageNameError does not work with single repo images

The valid? check does not work with the gitlab registry repos.

In the example in gitlab-org/gitlab!16639 (merged) review-qa-smoke failed because the image was not valid?.See https://gitlab.com/gitlab-org/gitlab/-/jobs/295064535 as an example

Edited by Martin Wortschack