From bcb3acbc9c2cba46e62de9451a5da92306f16c2a Mon Sep 17 00:00:00 2001 From: Sergio Date: Wed, 13 Nov 2024 11:30:20 +0100 Subject: [PATCH] Publisher: Clean up disk space before building Some images (like slc9-gpu-builder) are too big for the free runner, so we need to remove some stuff before, mostly unused language packages Reference for the free disk space: https://github.com/actions/runner-images/issues/2840 Builder error message: ``` ==> docker: At least 11799MB more space needed on the / filesystem. ``` --- .github/workflows/push-docker-image.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index 086fb9f..22ead9a 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -34,6 +34,12 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 + # Some images are too large and we run out of disk space, so try to free some + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@1.3.1 + with: + tool-cache: false + - name: Install prerequisites run: | apt update -y