Skip to content

Commit

Permalink
[IMP] Cleanup before and after build
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Oct 8, 2024
1 parent 3b208bc commit fe2f6fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit fe2f6fc

Please sign in to comment.