mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
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:
commit
c264fc6b62
1 changed files with 9 additions and 2 deletions
|
|
@ -389,7 +389,14 @@ function build_custom_if_needed() {
|
|||
printf "\n\nSUCCESS - Successfully built:\n\t%s\n" "$full_image_name"
|
||||
}
|
||||
|
||||
# Use DEBIAN by default unless specified otherwise
|
||||
DEBIAN=${DEBIAN:-bullseye}
|
||||
# If OS is specified ignore other ways to specify system
|
||||
# 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 $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue