Skip to content

Commit 1d5dcb3

Browse files
committed
Update layer-cleanup.sh
1 parent 2f7ea44 commit 1d5dcb3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/common/resources/layer-cleanup.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
apt-get autoclean --yes
1717
apt-get autoremove --yes
18+
pip cache purge
1819

1920
rm -rf /var/lib/apt/lists/*
20-
rm -rf /etc/apt/sources.list.d/*
2121
rm -rf /usr/local/src/*
2222

2323
rm -rf /var/cache/apt/*
@@ -29,4 +29,11 @@ rm -rf /usr/local/share/.cache/*
2929
rm -rf /tmp/* /var/tmp/*
3030
rm -rf /opt/conda/pkgs/cache
3131

32+
rm -rf /tmp/whl
33+
34+
# WARNING: this removes the apt repository list. To restore it and be able to run 'apt update',
35+
# you must run (works only in Debian):
36+
# . /etc/os-release && echo "deb http://deb.debian.org/debian $VERSION_CODENAME main" > /etc/apt/sources.list
37+
rm -rf /etc/apt/sources.list.d/*
38+
3239
exit 0

0 commit comments

Comments
 (0)