Skip to content

Commit 1ce9257

Browse files
committed
ci: move /var/lib/docker to /mnt on GHA
There are some builders that are running out of disk space while building the Docker images, such as arm-android. This moves and symlinks /var/lib/docker to the /mnt partition on Linux GHA.
1 parent bd18bc9 commit 1ce9257

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ci/scripts/symlink-build-dir.sh

+6
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ elif isLinux && isGitHubActions; then
2424
mv "${current_dir}" /mnt/more-space/workspace
2525
ln -s /mnt/more-space/workspace "${current_dir}"
2626
cd "${current_dir}"
27+
28+
# Move the Docker data directory to /mnt
29+
sudo systemctl stop docker.service
30+
sudo mv /var/lib/docker /mnt/docker
31+
sudo ln -s /mnt/docker /var/lib/docker
32+
sudo systemctl start docker.service
2733
fi

0 commit comments

Comments
 (0)