ci: Do not fail on image remove (#38660)

## Description
Fix : https://theappsmith.slack.com/archives/CGBPVEJ5C/p1736920490455829


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags="@tag.Settings"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated Docker image build workflow to improve error handling when
removing Docker images.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Sagar Khalasi 2025-01-15 12:16:43 +05:30 committed by GitHub
parent a23bcbf955
commit df5ef9be98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,7 @@ jobs:
docker image ls --all --no-trunc --format '{{.Repository}},{{.ID}}' \ docker image ls --all --no-trunc --format '{{.Repository}},{{.ID}}' \
| grep -v cicontainer \ | grep -v cicontainer \
| cut -d, -f2 \ | cut -d, -f2 \
| xargs docker rmi | xargs -r docker rmi
docker save cicontainer -o cicontainer.tar docker save cicontainer -o cicontainer.tar
gzip cicontainer.tar gzip cicontainer.tar