From 7eba5b72ed7687a11fc09da34ccef1ddcdc9d40f Mon Sep 17 00:00:00 2001 From: nikhil-ctds Date: Thu, 16 Jan 2025 17:30:42 +0530 Subject: [PATCH] fix docker cleanup in Github CI --- .github/workflows/ci-cpp.yaml | 2 +- .github/workflows/ci-integration-backwards-compatibility.yaml | 2 +- .github/workflows/ci-integration-cli.yaml | 2 +- .github/workflows/ci-integration-function.yaml | 2 +- .github/workflows/ci-integration-messaging.yaml | 2 +- .github/workflows/ci-integration-process.yaml | 2 +- .github/workflows/ci-integration-pulsar-io-ora.yaml | 2 +- .github/workflows/ci-integration-pulsar-io.yaml | 2 +- .github/workflows/ci-integration-schema.yaml | 2 +- .github/workflows/ci-integration-sql.yaml | 2 +- .github/workflows/ci-integration-standalone.yaml | 2 +- .github/workflows/ci-integration-thread.yaml | 2 +- .github/workflows/ci-integration-tiered-filesystem.yaml | 2 +- .github/workflows/ci-integration-tiered-jcloud.yaml | 2 +- .github/workflows/ci-integration-transaction.yaml | 2 +- .github/workflows/ci-owasp-dep-check.yaml | 2 +- .github/workflows/ci-pulsar-website-build.yaml | 2 +- .github/workflows/ci-shade-test.yaml | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci-cpp.yaml b/.github/workflows/ci-cpp.yaml index 85cc8966ca723..730909b2d60bd 100644 --- a/.github/workflows/ci-cpp.yaml +++ b/.github/workflows/ci-cpp.yaml @@ -76,7 +76,7 @@ jobs: if: ${{ steps.check_changes.outputs.docs_only != 'true' }} run: | sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: build package diff --git a/.github/workflows/ci-integration-backwards-compatibility.yaml b/.github/workflows/ci-integration-backwards-compatibility.yaml index 509fa3ac6eb6d..d60fd8b2feefc 100644 --- a/.github/workflows/ci-integration-backwards-compatibility.yaml +++ b/.github/workflows/ci-integration-backwards-compatibility.yaml @@ -79,7 +79,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-cli.yaml b/.github/workflows/ci-integration-cli.yaml index 1c8e323fa7fcb..d90f8b5a93b13 100644 --- a/.github/workflows/ci-integration-cli.yaml +++ b/.github/workflows/ci-integration-cli.yaml @@ -79,7 +79,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-function.yaml b/.github/workflows/ci-integration-function.yaml index 205e44dab6634..e6dbac790b458 100644 --- a/.github/workflows/ci-integration-function.yaml +++ b/.github/workflows/ci-integration-function.yaml @@ -79,7 +79,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-messaging.yaml b/.github/workflows/ci-integration-messaging.yaml index 13e16aa1894a2..6e7a8a87a2548 100644 --- a/.github/workflows/ci-integration-messaging.yaml +++ b/.github/workflows/ci-integration-messaging.yaml @@ -79,7 +79,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-process.yaml b/.github/workflows/ci-integration-process.yaml index a3e46cb538f3a..134feb26734bd 100644 --- a/.github/workflows/ci-integration-process.yaml +++ b/.github/workflows/ci-integration-process.yaml @@ -78,7 +78,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-pulsar-io-ora.yaml b/.github/workflows/ci-integration-pulsar-io-ora.yaml index db905dd857974..1663e4623ceac 100644 --- a/.github/workflows/ci-integration-pulsar-io-ora.yaml +++ b/.github/workflows/ci-integration-pulsar-io-ora.yaml @@ -80,7 +80,7 @@ jobs: sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-pulsar-io.yaml b/.github/workflows/ci-integration-pulsar-io.yaml index f8eac1b83fda1..5919574afddfc 100644 --- a/.github/workflows/ci-integration-pulsar-io.yaml +++ b/.github/workflows/ci-integration-pulsar-io.yaml @@ -80,7 +80,7 @@ jobs: sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-schema.yaml b/.github/workflows/ci-integration-schema.yaml index bc0b1b3cfa6af..8ba0fe8c81aa2 100644 --- a/.github/workflows/ci-integration-schema.yaml +++ b/.github/workflows/ci-integration-schema.yaml @@ -78,7 +78,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-sql.yaml b/.github/workflows/ci-integration-sql.yaml index c5bd21ffc1c5f..3ae9888a5e453 100644 --- a/.github/workflows/ci-integration-sql.yaml +++ b/.github/workflows/ci-integration-sql.yaml @@ -79,7 +79,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-standalone.yaml b/.github/workflows/ci-integration-standalone.yaml index 87df27eff7e77..c7f6efe0417c6 100644 --- a/.github/workflows/ci-integration-standalone.yaml +++ b/.github/workflows/ci-integration-standalone.yaml @@ -78,7 +78,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-thread.yaml b/.github/workflows/ci-integration-thread.yaml index fd7168fc01731..7cd1e5098c301 100644 --- a/.github/workflows/ci-integration-thread.yaml +++ b/.github/workflows/ci-integration-thread.yaml @@ -78,7 +78,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-tiered-filesystem.yaml b/.github/workflows/ci-integration-tiered-filesystem.yaml index 11b66edc8d4a8..f5ce4d6994f80 100644 --- a/.github/workflows/ci-integration-tiered-filesystem.yaml +++ b/.github/workflows/ci-integration-tiered-filesystem.yaml @@ -78,7 +78,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-tiered-jcloud.yaml b/.github/workflows/ci-integration-tiered-jcloud.yaml index 4952a40b1d965..10ae5f1286e0b 100644 --- a/.github/workflows/ci-integration-tiered-jcloud.yaml +++ b/.github/workflows/ci-integration-tiered-jcloud.yaml @@ -78,7 +78,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-integration-transaction.yaml b/.github/workflows/ci-integration-transaction.yaml index d06a9599cb6fa..8fc238da1a288 100644 --- a/.github/workflows/ci-integration-transaction.yaml +++ b/.github/workflows/ci-integration-transaction.yaml @@ -78,7 +78,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-owasp-dep-check.yaml b/.github/workflows/ci-owasp-dep-check.yaml index 10dc48f2b3a48..2519ad3ac49c2 100644 --- a/.github/workflows/ci-owasp-dep-check.yaml +++ b/.github/workflows/ci-owasp-dep-check.yaml @@ -78,7 +78,7 @@ jobs: sudo swapoff -a sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h # Projects dependent on flume, hdfs, hbase, and presto currently excluded from the scan. diff --git a/.github/workflows/ci-pulsar-website-build.yaml b/.github/workflows/ci-pulsar-website-build.yaml index 9d47f90e834f8..d0763fd1757df 100644 --- a/.github/workflows/ci-pulsar-website-build.yaml +++ b/.github/workflows/ci-pulsar-website-build.yaml @@ -60,7 +60,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests diff --git a/.github/workflows/ci-shade-test.yaml b/.github/workflows/ci-shade-test.yaml index c65c3414cf4ce..0ee12dc3f713b 100644 --- a/.github/workflows/ci-shade-test.yaml +++ b/.github/workflows/ci-shade-test.yaml @@ -79,7 +79,7 @@ jobs: run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo apt clean - docker rmi $(docker images -q) -f + docker rmi $(docker images -q) -f || echo "No Docker images to remove." df -h - name: run install by skip tests