ci: enforce maximum image tag length
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27379>
This commit is contained in:

committed by
Marge Bot

parent
73dcdc50d2
commit
b6fceeaa9f
@@ -294,6 +294,32 @@ sanity:
|
|||||||
script:
|
script:
|
||||||
# ci-fairy check-commits --junit-xml=check-commits.xml
|
# ci-fairy check-commits --junit-xml=check-commits.xml
|
||||||
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-merge-request.xml
|
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-merge-request.xml
|
||||||
|
- |
|
||||||
|
set -eu
|
||||||
|
image_tags=(
|
||||||
|
DEBIAN_BASE_TAG
|
||||||
|
DEBIAN_BUILD_TAG
|
||||||
|
DEBIAN_X86_64_TEST_ANDROID_TAG
|
||||||
|
DEBIAN_X86_64_TEST_GL_TAG
|
||||||
|
DEBIAN_X86_64_TEST_VK_TAG
|
||||||
|
ALPINE_X86_64_BUILD_TAG
|
||||||
|
ALPINE_X86_64_LAVA_SSH_TAG
|
||||||
|
FEDORA_X86_64_BUILD_TAG
|
||||||
|
KERNEL_ROOTFS_TAG
|
||||||
|
KERNEL_TAG
|
||||||
|
PKG_REPO_REV
|
||||||
|
WINDOWS_X64_MSVC_TAG
|
||||||
|
WINDOWS_X64_BUILD_TAG
|
||||||
|
WINDOWS_X64_TEST_TAG
|
||||||
|
)
|
||||||
|
for var in "${image_tags[@]}"
|
||||||
|
do
|
||||||
|
if [ "$(echo -n "${!var}" | wc -c)" -gt 30 ]
|
||||||
|
then
|
||||||
|
echo "$var is too long; please make sure it is at most 30 chars."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure
|
when: on_failure
|
||||||
reports:
|
reports:
|
||||||
|
Reference in New Issue
Block a user