⚡️(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.
This commit is contained in:
20
.github/workflows/impress-frontend.yml
vendored
20
.github/workflows/impress-frontend.yml
vendored
@@ -131,12 +131,22 @@ jobs:
|
|||||||
path: src/frontend/apps/impress/out/
|
path: src/frontend/apps/impress/out/
|
||||||
key: build-front-${{ github.run_id }}
|
key: build-front-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Build and Start Docker Servers
|
- name: Set up Docker Buildx
|
||||||
env:
|
uses: docker/setup-buildx-action@v3
|
||||||
DOCKER_BUILDKIT: 1
|
|
||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
- 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: |
|
run: |
|
||||||
docker-compose build --pull --build-arg BUILDKIT_INLINE_CACHE=1
|
|
||||||
make run
|
make run
|
||||||
|
|
||||||
- name: Apply DRF migrations
|
- name: Apply DRF migrations
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ and this project adheres to
|
|||||||
- (frontend) change logo (#84)
|
- (frontend) change logo (#84)
|
||||||
- (frontend) pdf has title doc (#84)
|
- (frontend) pdf has title doc (#84)
|
||||||
- ⚡️(e2e) unique login between tests (#80)
|
- ⚡️(e2e) unique login between tests (#80)
|
||||||
|
- ⚡️(CI) improve e2e job (#86)
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user