From fe2f6fc575e9b2cd74791ddff580eb250b750d49 Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Tue, 8 Oct 2024 13:03:21 +0200 Subject: [PATCH] [IMP] Cleanup before and after build --- .github/workflows/ci.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3648a75a..ea56d3a1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -106,6 +106,10 @@ jobs: DOCKER_REPO: tecnativa/doodba GHCR_HOST: ghcr.io steps: + - name: Clean Docker system before build + run: | + docker system prune -af || true + docker builder prune -af || true # Set build date as env variable to be used later - name: Set build date run: echo "BUILD_DATE=$(date '+%Y-%m-%dT%H:%M:%S.%N%:z')" >> $GITHUB_ENV @@ -168,3 +172,7 @@ jobs: VCS_REF=${{ github.sha }} BUILD_DATE=${{ env.BUILD_DATE }} ODOO_VERSION=${{ matrix.odoo_version }} + - name: Clean Docker system after build + run: | + docker system prune -af || true + docker builder prune -af || true