-
Docker has some rules on tag formatting, as per https://docs.docker.com/engine/reference/commandline/image_tag/#description So, let's create a function to help us validate it before making, and give a meaningful message to the user if the validation fails. The current workflow is hard to grasp. For example, having a very long tag (> 128 characters) would print to an invalid reference format, which is not clear, as one can see at the end of this GitLab trace [here](https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/54115605/raw ) Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>