Skip to content

Commit be1504c

Browse files
committed
⚡️(CI) improve docker build cache
Improve the caching by using docker buildx, it should speed up the build process by using the cache from the previous build.
1 parent e4bed84 commit be1504c

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/impress-frontend.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,22 @@ jobs:
131131
path: src/frontend/apps/impress/out/
132132
key: build-front-${{ github.run_id }}
133133

134-
- name: Build and Start Docker Servers
135-
env:
136-
DOCKER_BUILDKIT: 1
137-
COMPOSE_DOCKER_CLI_BUILD: 1
134+
- name: Set up Docker Buildx
135+
uses: docker/setup-buildx-action@v3
136+
137+
- name: Build the Docker images
138+
uses: docker/bake-action@v4
139+
with:
140+
targets: |
141+
app-dev
142+
y-webrtc-signaling
143+
load: true
144+
set: |
145+
*.cache-from=type=gha,scope=cached-stage
146+
*.cache-to=type=gha,scope=cached-stage,mode=max
147+
148+
- name: Start Docker services
138149
run: |
139-
docker-compose build --pull --build-arg BUILDKIT_INLINE_CACHE=1
140150
make run
141151
142152
- name: Apply DRF migrations

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to
2828
- (frontend) change logo (#84)
2929
- (frontend) pdf has title doc (#84)
3030
- ⚡️(e2e) unique login between tests (#80)
31+
- ⚡️(CI) improve e2e job (#86)
3132

3233
## Fixed
3334

0 commit comments

Comments
 (0)