File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,21 @@ jobs:
45
45
steps :
46
46
- name : Free up more disk space on the runner
47
47
# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
48
+ # the /mnt dir has 70GBs of free space
49
+ # /dev/sda1 74G 28K 70G 1% /mnt
50
+ # According to some online posts the /mnt is not always there, so checking before setting docker to use it
48
51
run : |
49
52
echo "----- Free space before cleanup"
50
53
df -h
51
54
sudo rm -rf /usr/share/dotnet
52
55
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
53
56
sudo swapoff /mnt/swapfile
54
57
sudo rm -rf /mnt/swapfile
58
+ if [ -d /mnt ]; then
59
+ sudo chmod -R 777 /mnt
60
+ echo '{"data-root": "/mnt/docker-root"}' | sudo tee /etc/docker/daemon.json
61
+ sudo systemctl restart docker
62
+ fi
55
63
echo "----- Free space after cleanup"
56
64
df -h
57
65
You can’t perform that action at this time.
0 commit comments