From 8d840fb95033fa273f3eebcc24d422cf09b2c63e Mon Sep 17 00:00:00 2001 From: Matthew Whitlock Date: Wed, 9 Oct 2024 18:12:25 -0400 Subject: [PATCH] Setup image caching --- .github/workflows/ci_checks.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_checks.yaml b/.github/workflows/ci_checks.yaml index 7e0cbee..cccf672 100644 --- a/.github/workflows/ci_checks.yaml +++ b/.github/workflows/ci_checks.yaml @@ -22,9 +22,12 @@ jobs: uses: docker/bake-action@v5 with: files: .github/docker-compose.yml - load: true targets: bootstrap workdir: . + set: | + *.output=type=docker,name= + *.cache-from=type=gha,scope= + *.cache-to=type=gha,mode=max,scope= - name: Bootstrap the environment Dockerfile run: docker run -v ${GITHUB_WORKSPACE}/.github:/configs local/bootstrap @@ -35,16 +38,22 @@ jobs: files: .github/docker-compose.yml targets: env workdir: . - set: env.output=type=docker,name= + set: | + *.output=type=docker,name= + *.cache-from=type=gha,scope= + *.cache-to=type=gha,mode=max,scope= - name: Build Fenix uses: docker/bake-action@v5 with: source: . files: .github/docker-compose.yml - load: true targets: fenix workdir: . + set: | + *.output=type=docker,name= + *.cache-from=type=gha,scope= + *.cache-to=type=gha,mode=max,scope= - name: Test Fenix run: docker run local/fenix