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)
This commit is contained in:
Liu An
2025-10-30 20:14:02 +08:00
committed by GitHub
parent 361c74ab42
commit a62a1a5012

View File

@ -227,4 +227,4 @@ jobs:
if: always() # always run this step even if previous steps failed if: always() # always run this step even if previous steps failed
run: | run: |
sudo docker compose -f docker/docker-compose.yml -p ${GITHUB_RUN_ID} down -v 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