File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments