From eec82176b095cce9172586a1370afea35becd390 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 27 Dec 2025 09:20:03 +0100 Subject: [PATCH] Add disk space cleanup and reduce retry wait time Updated the workflow to include disk space cleanup and adjusted retry wait time. --- .github/workflows/onpush_builder.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/onpush_builder.yaml b/.github/workflows/onpush_builder.yaml index 18963f1a7..d73fd9c51 100644 --- a/.github/workflows/onpush_builder.yaml +++ b/.github/workflows/onpush_builder.yaml @@ -170,6 +170,16 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Free disk space (runner) + uses: endersonmenezes/free-disk-space@v3 + with: + remove_android: true + remove_dotnet: true + remove_haskell: true + remove_tool_cache: true + remove_swap: true + rm_cmd: "rmz" + rmz_version: "3.1.1" - name: Build ${{ matrix.addon }} add-on (attempt 1) id: builderstep1 if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true' @@ -180,17 +190,16 @@ jobs: with: args: | ${{ env.BUILD_ARGS }} \ - --no-cache \ --${{ matrix.arch }} \ --target "/data/${{ matrix.addon }}" \ --image "${{ steps.check.outputs.image }}" \ --docker-hub "ghcr.io/${{ github.repository_owner }}" \ --addon - - name: Wait 3 minutes before retry + - name: Wait 1 minute before retry if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true' && steps.builderstep1.outcome == 'failure' run: | - sleep 180 + sleep 60 - name: Build ${{ matrix.addon }} add-on (attempt 2) if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true' && steps.builderstep1.outcome == 'failure' @@ -200,6 +209,7 @@ jobs: with: args: | ${{ env.BUILD_ARGS }} \ + --no-cache \ --${{ matrix.arch }} \ --target "/data/${{ matrix.addon }}" \ --image "${{ steps.check.outputs.image }}" \