@@ -90,16 +90,22 @@ prepare app
9090check_prep_result $? app || exit
9191echo " Testing the production image build"
9292
93- FULL_IMAGE=${FULL_IMAGE:- ${IMAGE_NAME// -minimal: 1 / } }
93+ FULL_IMAGE=${FULL_IMAGE:- ${IMAGE_NAME// -minimal: latest / } }
9494# if FULL_IMAGE is not found, try to pull it, if that does not work, try to pull ubi9 one
9595if [ -z " $( docker images -q " $FULL_IMAGE " ) " ] ; then
9696 echo " Image $FULL_IMAGE not found, trying to pull $FULL_IMAGE from registry"
9797 docker pull " $FULL_IMAGE "
9898fi
9999if [ -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
103109fi
104110if [ -z " $( docker images -q " $FULL_IMAGE " ) " ] ; then
105111 echo " Image $FULL_IMAGE could not be found nor pulled, giving up."
0 commit comments