From ef19487611cc8578522f674e90576abc541f7b7a Mon Sep 17 00:00:00 2001 From: Alphaeus Mote Date: Wed, 2 Sep 2026 09:50:14 -0400 Subject: [PATCH] ci: free disk space before building Repeated runs filled the self-hosted runner's disk, so npm ci failed with ENOSPC. Prune unused Docker images/layers and the apt cache at the start of the job (the image is rebuilt fresh later). Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2588f67..b399353 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -58,6 +58,19 @@ jobs: with: fetch-depth: 0 + # This self-hosted runner accumulates Docker layers/images and caches + # across runs, which can fill the disk (npm ci fails with ENOSPC). Reclaim + # space up front by pruning unused Docker data (the image is rebuilt fresh + # later anyway) and the apt cache. + - name: Free disk space + shell: bash + run: | + df -h / || true + docker system prune -af || true + docker builder prune -af || true + sudo apt-get clean || true + df -h / || true + # Version = the UTC date of the HEAD commit, formatted yyyy.MM.dd.HHmm # (the project's documented version scheme). Deriving it from the commit # rather than "now" makes re-runs reproducible and keeps the image tag, -- 2.52.0