Skip to content

Commit d4af50c

Browse files
committed
For CI debug #2
Signed-off-by: Yao, Qing <qing.yao@intel.com>
1 parent 6397780 commit d4af50c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

PolyLingua/tests/test_compose_on_gaudi.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,20 @@ function build_docker_images() {
3535
# Build all images using build.yaml
3636
echo "Building PolyLingua images with --no-cache, check docker_image_build.log for details..."
3737
service_list="polylingua polylingua-ui llm-textgen"
38-
docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log 2>&1
38+
39+
if ! docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log 2>&1; then
40+
echo "::error::Docker Compose build failed. Printing build logs..."
41+
cat "${LOG_PATH}/docker_image_build.log"
42+
exit 1
43+
fi
3944

4045
echo "Image build completed"
46+
echo "Verifying built images..."
47+
if ! docker images | grep -q "polylingua" || ! docker images | grep -q "polylingua-ui" || ! docker images | grep -q "llm-textgen"; then
48+
echo "::error::One or more required images are missing after build!"
49+
docker images
50+
exit 1
51+
fi
4152
docker images | grep -E "polylingua|llm-textgen"
4253
sleep 1s
4354
}

0 commit comments

Comments
 (0)