From bccda6e9b6f50f8eb959e6af2740929e28488182 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Fri, 8 May 2026 17:51:20 +0700 Subject: [PATCH] Clean Flutter build cache before CI build --- .gitea/workflows/build-and-deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index a6b1e8d..0fb8ec9 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -22,6 +22,13 @@ jobs: auth="$(printf '%s:%s' "${{ secrets.REGISTRY_USERNAME }}" "${{ secrets.REGISTRY_TOKEN }}" | base64 | tr -d '\n')" printf '{"auths":{"gitea.dsrptlab.com":{"auth":"%s"}}}\n' "$auth" > ~/.docker/config.json + - name: Free Docker build space + run: | + set -euo pipefail + docker buildx prune --all --force || true + docker builder prune --all --force || true + docker system prune --all --force || true + - name: Build and push image run: | set -euo pipefail