get weird with it

This commit is contained in:
Daylin Morgan 2024-06-14 15:02:01 -05:00
parent e4d08c4195
commit 6ec76eb866
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -18,31 +18,33 @@ runs:
set -euo pipefail
echo "Removing unwanted software... "
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/hostedtoolcache
sudo docker image prune --all --force > /dev/null
sudo rm -rf /usr/local
sudo apt-get remove -y '^aspnetcore-.*' > /dev/null
sudo apt-get remove -y '^dotnet-.*' > /dev/null
sudo apt-get remove -y '^llvm-.*' > /dev/null
sudo apt-get remove -y 'php.*' > /dev/null
sudo apt-get remove -y '^mongodb-.*' > /dev/null
sudo apt-get remove -y '^mysql-.*' > /dev/null
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing > /dev/null
sudo apt-get remove -y google-cloud-sdk --fix-missing > /dev/null
sudo apt-get remove -y google-cloud-cli --fix-missing > /dev/null
# sudo docker image prune --all --force > /dev/null &
{
sudo apt-get remove -y \
'^aspnetcore-.*' '^dotnet-.*' '^llvm-.*' \
'php.*' '^mongodb-.*' '^mysql-.*' '^google-cloud-*' \
azure-cli google-chrome-stable firefox \
powershell mono-devel libgl1-mesa-dri \
--fix-missing \
> /dev/null
sudo apt-get remove -y docker > /dev/null
sudo apt-get autoremove -y > /dev/null
sudo apt-get clean > /dev/null
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
} &
wait
df -h
sudo rm -rf /var/lib/docker
df -h
sudo swapoff -a
sudo rm -f /mnt/swapfile
free -h
sudo rm -f /mnt/swapfile &
sudo rm -rf /usr/{local,share} &
sudo rm -rf /opt &
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
wait
echo "... done"
- name: Disk space report after modification