From 0e4ef90e621d3673e1db2a118ae215f4724b0e43 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 13 Oct 2023 11:46:43 +0200 Subject: [PATCH] add github cache for docker --- .github/workflows/deploy.yml | 2 ++ .github/workflows/test_server.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fa2ff154..ecac11b4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,3 +43,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:latest + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/.github/workflows/test_server.yml b/.github/workflows/test_server.yml index 4c08de22..6761b738 100644 --- a/.github/workflows/test_server.yml +++ b/.github/workflows/test_server.yml @@ -81,3 +81,5 @@ jobs: with: context: server platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max