From 45c637a14d6b2ee73d7c8fa9e1ff02f3472892ad Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Tue, 28 Apr 2026 16:21:06 +0200 Subject: [PATCH] ci: prune docker cache before image build --- .gitea/workflows/ci-cd.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index d4c47f7..0214394 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -158,6 +158,15 @@ jobs: git clone --depth=1 --branch="${BRANCH}" "${REPO_URL}/${GITHUB_REPOSITORY}.git" . git checkout "${GITHUB_SHA}" + - name: Free Docker build space + run: | + set -euo pipefail + docker system df || true + docker buildx prune --all --force || true + docker builder prune --all --force || true + docker system prune --all --force --volumes || true + docker system df || true + - name: Build and push branch images env: GITEA_TOKEN: ${{ gitea.token }}