Skip to content

Commit e9a72e8

Browse files
[IMP] Cleanup before and after build
1 parent 3c78f4e commit e9a72e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ jobs:
106106
DOCKER_REPO: tecnativa/doodba
107107
GHCR_HOST: ghcr.io
108108
steps:
109+
- name: Clean Docker system before build
110+
run: |
111+
docker system prune -af || true
112+
docker builder prune -af || true
109113
# Set build date as env variable to be used later
110114
- name: Set build date
111115
run: echo "BUILD_DATE=$(date '+%Y-%m-%dT%H:%M:%S.%N%:z')" >> $GITHUB_ENV
@@ -168,3 +172,7 @@ jobs:
168172
VCS_REF=${{ github.sha }}
169173
BUILD_DATE=${{ env.BUILD_DATE }}
170174
ODOO_VERSION=${{ matrix.odoo_version }}
175+
- name: Clean Docker system after build
176+
run: |
177+
docker system prune -af || true
178+
docker builder prune -af || true

0 commit comments

Comments
 (0)