ci: prune docker
This commit is contained in:
parent
30e0e5f554
commit
6bda2344c9
4
.github/workflows/ubuntu.yml
vendored
4
.github/workflows/ubuntu.yml
vendored
@ -136,7 +136,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "backup moby/buildkit image"
|
echo "backup moby/buildkit image"
|
||||||
sudo docker image save -o ${GITHUB_WORKSPACE}/images.tar moby/buildkit
|
sudo docker image save -o ${GITHUB_WORKSPACE}/images.tar moby/buildkit
|
||||||
echo "Back up /var/lib/docker folder structure and other files"
|
echo "prune docker"
|
||||||
|
sudo docker system prune -a -f
|
||||||
|
echo "back up /var/lib/docker folder structure and other files"
|
||||||
sudo rsync -aPq /var/lib/docker/ ${GITHUB_WORKSPACE}/docker
|
sudo rsync -aPq /var/lib/docker/ ${GITHUB_WORKSPACE}/docker
|
||||||
|
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
Loading…
Reference in New Issue
Block a user