mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user