Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix(ci): Add error handling to Docker image removal in tests workflow (#10904)

Liu Ana62a1a501243
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 950da576cf..437825c27a 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