ci: Clean up disk usage before saving container to disk (#34770)

Saving the Docker image to disk is failing on EE `pg` because of lack of
disk space. So we clean up all the unused Docker images just before
doing this.
This commit is contained in:
Shrikant Sharat Kandula 2024-07-08 17:03:02 +05:30 committed by GitHub
parent 9766775d05
commit fc54a33e4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,10 @@ jobs:
# Saving the docker image to tar file
- name: Save Docker image to tar file
run: |
docker image ls --all --no-trunc --format '{{.Repository}},{{.ID}}' \
| grep -v cicontainer \
| cut -d, -f2 \
| xargs docker rmi
docker save cicontainer -o cicontainer.tar
gzip cicontainer.tar