From 53231b01373197ad683218289679c274a837e6fe Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 8 Aug 2023 16:22:05 +0100 Subject: [PATCH] ci: document max image tag length I've known about this for years and yet I still accidentally wrote a too long tag. Document this for myself next time, and for everyone else. Signed-off-by: Eric Engestrom Part-of: --- .gitlab-ci/image-tags.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci/image-tags.yml b/.gitlab-ci/image-tags.yml index a78819f07a8..6cc009c2737 100644 --- a/.gitlab-ci/image-tags.yml +++ b/.gitlab-ci/image-tags.yml @@ -1,3 +1,10 @@ +# Keep the tags below under 25-30 chars each, as they end up combined into +# docker image tags, and docker has a length limit of 128 chars total in tags. +# +# If you update a tag and you get an error like this: +# cannot parse input: "$image:$tag": invalid reference format +# check the length of $tag; if it's > 128 chars you need to shorten your tag. + variables: DEBIAN_X86_64_BUILD_BASE_IMAGE: "debian/x86_64_build-base" DEBIAN_BASE_TAG: "2023-08-03-mold"