Merge branch 'fix-image-names' into 'master'

Fix duplicate `debian-bullseye` in image name

See merge request https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/596

Merged-by: Stan Hu <stanhu@gmail.com>
Approved-by: Rémy Coutable <remy@rymai.me>
Approved-by: Stan Hu <stanhu@gmail.com>
Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>
This commit is contained in:
Stan Hu 2022-10-28 14:34:00 +00:00
commit c264fc6b62

View file

@ -389,7 +389,14 @@ function build_custom_if_needed() {
printf "\n\nSUCCESS - Successfully built:\n\t%s\n" "$full_image_name" printf "\n\nSUCCESS - Successfully built:\n\t%s\n" "$full_image_name"
} }
# Use DEBIAN by default unless specified otherwise # If OS is specified ignore other ways to specify system
DEBIAN=${DEBIAN:-bullseye} # Use DEBIAN if UBI is not specified
if [[ -n "$OS" ]]; then
unset DEBIAN UBI
elif [[ -n "$UBI" ]]; then
unset DEBIAN
else
DEBIAN=${DEBIAN:-bullseye}
fi
build_custom_if_needed $@ build_custom_if_needed $@