diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index dbb35b588f..a388a2f447 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -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