@@ -90,16 +90,22 @@ prepare app
90
90
check_prep_result $? app || exit
91
91
echo " Testing the production image build"
92
92
93
- FULL_IMAGE=${FULL_IMAGE:- ${IMAGE_NAME// -minimal: 1 / } }
93
+ FULL_IMAGE=${FULL_IMAGE:- ${IMAGE_NAME// -minimal: latest / } }
94
94
# if FULL_IMAGE is not found, try to pull it, if that does not work, try to pull ubi9 one
95
95
if [ -z " $( docker images -q " $FULL_IMAGE " ) " ] ; then
96
96
echo " Image $FULL_IMAGE not found, trying to pull $FULL_IMAGE from registry"
97
97
docker pull " $FULL_IMAGE "
98
98
fi
99
99
if [ -z " $( docker images -q " $FULL_IMAGE " ) " ] ; then
100
- echo " Image $FULL_IMAGE still not found, trying to use ubi9/nodejs-${VERSION// -minimal/ } :latest and pull it"
101
- FULL_IMAGE=" ubi9/nodejs-${VERSION// -minimal/ } :latest"
102
- docker pull " $FULL_IMAGE "
100
+ if [[ " $OS " == " rhel9" ]]; then
101
+ echo " Image $FULL_IMAGE still not found, trying to use ubi9/nodejs-${VERSION// -minimal/ } :latest and pull it"
102
+ FULL_IMAGE=" ubi9/nodejs-${VERSION// -minimal/ } :latest"
103
+ docker pull " $FULL_IMAGE "
104
+ elif [[ " $OS " == " rhel10" ]]; then
105
+ echo " Image $FULL_IMAGE still not found, trying to use ubi10/nodejs-${VERSION// -minimal/ } :latest and pull it"
106
+ FULL_IMAGE=" ubi10/nodejs-${VERSION// -minimal/ } :latest"
107
+ docker pull " $FULL_IMAGE "
108
+ fi
103
109
fi
104
110
if [ -z " $( docker images -q " $FULL_IMAGE " ) " ] ; then
105
111
echo " Image $FULL_IMAGE could not be found nor pulled, giving up."
0 commit comments