From b4e4d438e0b3ebdfaa64c858ebe8915f26719df1 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 19 Jun 2025 15:02:34 +0200 Subject: [PATCH] GitHub: make Docker build more reliable Currently the Docker image build regularly fails with "no space left on disk". We try to delete additional files and docker images to try to avoid that error. --- .github/workflows/docker.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ff174c411..c3a8406d4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -25,6 +25,9 @@ jobs: main: runs-on: ubuntu-latest steps: + - name: cleanup space + run: rm -rf /opt/hostedtoolcache + - name: Set up QEMU uses: lightninglabs/gh-actions/setup-qemu-action@2021.01.25.00 @@ -62,8 +65,11 @@ jobs: tags: "${{ env.DOCKER_ORG }}/${{ env.DOCKER_REPO }}:${{ env.IMAGE_TAG }}" build-args: checkout=${{ env.RELEASE_VERSION }} - - name: Clear the build cache + - name: Clear the Docker build cache run: docker builder prune -a -f + + - name: Clear the Docker image cache + run: docker image prune -a -f - name: Build and push image with /lit path id: docker_build2