This is an automated email from the ASF dual-hosted git repository.

starsz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 71ad87d06 fix(ci): free disk space (#11081)
71ad87d06 is described below

commit 71ad87d060f0b8106411e3d4bece504920f4ca1f
Author: walter mo <[email protected]>
AuthorDate: Thu Mar 28 20:27:26 2024 +0800

    fix(ci): free disk space (#11081)
---
 ci/free_disk_space.sh | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/ci/free_disk_space.sh b/ci/free_disk_space.sh
index b385016fa..462258eaf 100644
--- a/ci/free_disk_space.sh
+++ b/ci/free_disk_space.sh
@@ -25,7 +25,24 @@ echo 
"==========================================================================
 echo "Freeing up disk space on CI system"
 echo 
"=============================================================================="
 
+echo "Initial disk usage:"
 df -h
-echo "Removing unnecessary large directories"
-sudo rm -rf /usr/local/lib/android /usr/share/dotnet /usr/share/swift
+
+echo "Removing large directories and runtimes..."
+sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc 
/usr/local/.ghcup /usr/share/swift
+
+echo "Removing large packages and performing clean-up..."
+sudo apt-get remove -y '^aspnetcore-.*' '^dotnet-.*' '^llvm-.*' 'php.*' 
'^mongodb-.*' '^mysql-.*' \
+azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri 
google-cloud-sdk google-cloud-cli --fix-missing
+sudo apt-get autoremove -y
+sudo apt-get clean
+
+echo "Removing Docker images..."
+sudo docker image prune --all --force
+
+echo "Removing and Swap storage..."
+sudo swapoff -a
+sudo rm -f /mnt/swapfile
+
+echo "Final disk usage:"
 df -h

Reply via email to