From 0571aaabce8b2d39069d21d025c0b8171b7226dc Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Fri, 7 Jun 2024 14:23:16 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F(CI)=20improve=20docker=20bui?= =?UTF-8?q?ld=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improve the caching by using docker buildx, it should speed up the build process by using the cache from the previous build. --- .github/workflows/impress-frontend.yml | 20 +++++++++++++++----- CHANGELOG.md | 1 + 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/impress-frontend.yml b/.github/workflows/impress-frontend.yml index fd6b05b3..e3cea1b4 100644 --- a/.github/workflows/impress-frontend.yml +++ b/.github/workflows/impress-frontend.yml @@ -131,12 +131,22 @@ jobs: path: src/frontend/apps/impress/out/ key: build-front-${{ github.run_id }} - - name: Build and Start Docker Servers - env: - DOCKER_BUILDKIT: 1 - COMPOSE_DOCKER_CLI_BUILD: 1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build the Docker images + uses: docker/bake-action@v4 + with: + targets: | + app-dev + y-webrtc-signaling + load: true + set: | + *.cache-from=type=gha,scope=cached-stage + *.cache-to=type=gha,scope=cached-stage,mode=max + + - name: Start Docker services run: | - docker-compose build --pull --build-arg BUILDKIT_INLINE_CACHE=1 make run - name: Apply DRF migrations diff --git a/CHANGELOG.md b/CHANGELOG.md index 762f80f6..465d771e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to - (frontend) change logo (#84) - (frontend) pdf has title doc (#84) - ⚡️(e2e) unique login between tests (#80) +- ⚡️(CI) improve e2e job (#86) ## Fixed