From ae49228b6e8adda0f68e653924021276cc515689 Mon Sep 17 00:00:00 2001 From: clsferguson <48876201+clsferguson@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:55:38 -0600 Subject: [PATCH] ci(workflow): remove post-job Docker prunes; keep pre-clean and reliable self-hosted fallback - Keep pre-build cleanup on GH runners (free-disk-space action and Docker builder/system prune) to prevent ENOSPC during builds. - Remove post-job prune steps for both GH and ephemeral self-hosted runners since runners are discarded after the job and setup-buildx uses cleanup=true to remove builders automatically. - Retain fallback: self-hosted build runs only if the GH build fails; publish succeeds if either path succeeds; final job fails only if both builds fail. --- .github/workflows/build-release.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 5bd0918de..0ef654f24 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -124,12 +124,6 @@ jobs: ${{ env.IMAGE_NAME }}:${{ needs.check-tag.outputs.current_tag }} ${{ env.IMAGE_NAME }}:latest - - name: Prune Docker caches (post) - if: always() - run: | - docker builder prune -af || true - docker system prune -af --volumes || true - build-self: name: Build on Self-Hosted (fallback) needs: [check-tag, build-gh] @@ -187,12 +181,6 @@ jobs: ${{ env.IMAGE_NAME }}:${{ needs.check-tag.outputs.current_tag }} ${{ env.IMAGE_NAME }}:latest - - name: Prune Docker caches (post) - if: always() - run: | - docker builder prune -af || true - docker system prune -af --volumes || true - publish: name: Update Release needs: [check-tag, build-gh, build-self]