Use regex for image digest input
We want to use a regex for the image_digest
input.
It's currently blocked by match? method of the ::Gitlab::UntrustedRegexp ... (gitlab-org/gitlab#477707 - closed) because empty strings (default value for this input) is rejected immediately without considering the regex.