From 342a89c14ab8b42f8e97bbeb99e48a07efdcbf1f Mon Sep 17 00:00:00 2001 From: Fangyin Cheng Date: Thu, 19 Dec 2024 18:54:57 +0800 Subject: [PATCH] fix(ci): Fix build docker image error (#2221) --- .github/workflows/docker-image-publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker-image-publish.yml b/.github/workflows/docker-image-publish.yml index c2d36bf0e..cb636df69 100644 --- a/.github/workflows/docker-image-publish.yml +++ b/.github/workflows/docker-image-publish.yml @@ -16,6 +16,13 @@ jobs: if: github.event_name != 'pull_request' steps: - uses: actions/checkout@v3 + - name: free disk space + run: | + sudo swapoff -a + sudo rm -f /swapfile + sudo apt clean + docker rmi $(docker image ls -aq) + df -h - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx