Skip to content

Commit 8a51a6b

Browse files
authored
Update build.sh
1 parent be7050d commit 8a51a6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.ci/docker/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,14 @@ elif [[ "$image" == *-noble* ]]; then
5656
UBUNTU_VERSION=24.04
5757
elif [[ "$image" == *ubuntu* ]]; then
5858
extract_version_from_image_name ubuntu UBUNTU_VERSION
59+
elif [[ "$image" == *centos* ]]; then
60+
extract_version_from_image_name centos CENTOS_VERSION
5961
fi
6062

6163
if [ -n "${UBUNTU_VERSION}" ]; then
6264
OS="ubuntu"
65+
elif [ -n "${CENTOS_VERSION}" ]; then
66+
OS="centos"
6367
else
6468
echo "Unable to derive operating system base..."
6569
exit 1

0 commit comments

Comments
 (0)