Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

Commit e15edaf

Browse files
fix(ci): fix docker cache (#2200)
* fix(ci): testing different action to solve cache problem * fix(ci): added step to setup buildx * fix(ci): added checkout step * fix(ci): optimizing docker cache flow * revert Dockerfile to main version * fix(ci): testing different action to solve cache problem * fix(ci): added step to setup buildx * fix(ci): added checkout step * fix(ci): optimizing docker cache flow * revert Dockerfile to main version * fix(ci): cleaned white spaces
1 parent b33bb4c commit e15edaf

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,17 @@ jobs:
238238
runs-on: ubuntu-latest
239239
steps:
240240
- uses: actions/checkout@v4
241-
# enable docker layer caching, speeds up the building of the image
242-
- uses: satackey/[email protected]
241+
- name: Set up Docker Buildx
242+
uses: docker/setup-buildx-action@v3
243+
- name: Build Papyrus utilites docker image
244+
uses: docker/[email protected]
243245
continue-on-error: true # ignore the failure of a step and avoid terminating the job.
244-
- run: DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker build -f papyrus_utilities.Dockerfile .
246+
with:
247+
push: false
248+
context: .
249+
file: papyrus_utilities.Dockerfile
250+
cache-from: type=gha,scope=buildkit-ci
251+
cache-to: type=gha,mode=max,scope=buildkit-ci
245252

246253
random-table-test:
247254
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)