From a62a1a5012430065ee685b2978674ee7cd069bfd Mon Sep 17 00:00:00 2001 From: Liu An Date: Thu, 30 Oct 2025 20:14:02 +0800 Subject: [PATCH] Fix(ci): Add error handling to Docker image removal in tests workflow (#10904) ### What problem does this PR solve? Add '|| true' to docker rmi command to prevent workflow failure when image removal fails. This ensures the CI pipeline continues even if the Docker image cannot be removed for any reason. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 950da576c..437825c27 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -227,4 +227,4 @@ jobs: if: always() # always run this step even if previous steps failed run: | sudo docker compose -f docker/docker-compose.yml -p ${GITHUB_RUN_ID} down -v - sudo docker rmi -f ${RAGFLOW_IMAGE} + sudo docker rmi -f ${RAGFLOW_IMAGE:-NO_IMAGE} || true