Skip to content

Commit a8e8c06

Browse files
heathen711hipsterusername
authored andcommitted
bugfix(container-builder) Use the mnt space instead of root space for docker images
1 parent 3835fd2 commit a8e8c06

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/build-container.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,17 @@ jobs:
4343
# PLATFORMS: 'linux/amd64,linux/arm64'
4444
PLATFORMS: 'linux/amd64'
4545
steps:
46-
- name: Free up more disk space on the runner
47-
# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
48-
run: |
49-
echo "----- Free space before cleanup"
50-
df -h
51-
sudo rm -rf /usr/share/dotnet
52-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
53-
sudo swapoff /mnt/swapfile
54-
sudo rm -rf /mnt/swapfile
55-
echo "----- Free space after cleanup"
56-
df -h
57-
5846
- name: Checkout
5947
uses: actions/checkout@v4
6048

49+
# the /mnt dir has 70GBs of free space
50+
# /dev/sda1 74G 28K 70G 1% /mnt
51+
- name: Configure Docker to use the larger mnt directory
52+
run: |
53+
sudo chmod -R 777 /mnt
54+
echo '{"data-root": "/mnt/docker-root"}' | sudo tee /etc/docker/daemon.json
55+
sudo systemctl restart docker
56+
6157
- name: Docker meta
6258
id: meta
6359
uses: docker/metadata-action@v5

0 commit comments

Comments
 (0)