From f3645fa5ecc9855dd28970f23297d8ba6c08ff23 Mon Sep 17 00:00:00 2001 From: Michael Rogenmoser Date: Wed, 27 Dec 2023 19:49:17 +0100 Subject: [PATCH] Fix rhel9 docker container names --- .github/scripts/gen_dockerfile.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/scripts/gen_dockerfile.sh b/.github/scripts/gen_dockerfile.sh index e215a00b..a6dd34af 100755 --- a/.github/scripts/gen_dockerfile.sh +++ b/.github/scripts/gen_dockerfile.sh @@ -8,7 +8,12 @@ if [ $(echo $full_tgtname | cut -d ':' -f 1) = "rhel" ]; then export maj_version=$(echo $full_tgtname | cut -d ':' -f 2) export full_tgtname=redhat/ubi${maj_version:0:1}:$(echo $full_tgtname | cut -d ':' -f 2) if [ $(echo $full_tgtname | cut -d ':' -f 2 | cut -d '.' -f 1) = '9' ]; then - export full_tgtname=$full_tgtname.0 + if [ $(echo $full_tgtname | cut -d ':' -f 2 | cut -d '.' -f 2) = '0' ]; then + export full_tgtname=$full_tgtname.0 + fi + if [ $(echo $full_tgtname | cut -d ':' -f 2 | cut -d '.' -f 2) = '1' ]; then + export full_tgtname=$full_tgtname.0 + fi fi fi