From 819d3ae23d62f492bd243d78e2d59a302f539586 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Tue, 14 Jul 2026 09:39:31 +0800 Subject: [PATCH] fix: prevent docker images grep from failing build with set -e The last line of the build script uses grep to display built images, but with set -e, grep returning no matches causes the entire script to fail. This is a classic set -e footgun. The grep pattern was also broken: docker images shows REPOSITORY and TAG as separate columns (no ':' between them), so 'xiaoxia-saas.*:' never matched. Changed to two-stage grep and added || true safety net. The build and push were actually succeeding - only the final display line was causing the failure. --- scripts/build_release_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_release_images.sh b/scripts/build_release_images.sh index 9e27b01d1..498726305 100755 --- a/scripts/build_release_images.sh +++ b/scripts/build_release_images.sh @@ -179,4 +179,4 @@ else fi echo "=== Build complete ===" -docker images | grep "xiaoxia-saas.*:$VERSION" +docker images | grep "xiaoxia-saas" | grep "$VERSION" || true -- 2.54.0