From d6d0f824891d7c1f6d3080090a9131adab8068c8 Mon Sep 17 00:00:00 2001 From: erikzaadi Date: Tue, 10 Sep 2024 14:19:26 +0300 Subject: [PATCH] Add docker layer cache --- .github/workflows/ci.yml | 2 ++ .github/workflows/release-integrations.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 328e5ae9ad..c57d221781 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,8 @@ jobs: file: ${{ steps.prepare_tags.outputs.dockerfile_path }} platforms: linux/amd64,linux/arm64 push: false + cache-from: type=gha + cache-to: type=gha,mode=max tags: ${{ steps.prepare_tags.outputs.tags }} build-args: | BUILD_CONTEXT=${{ steps.prepare_tags.outputs.context_dir }} diff --git a/.github/workflows/release-integrations.yml b/.github/workflows/release-integrations.yml index 9ef8e30097..87a478a527 100644 --- a/.github/workflows/release-integrations.yml +++ b/.github/workflows/release-integrations.yml @@ -115,6 +115,8 @@ jobs: file: ${{ steps.prepare_tags.outputs.dockerfile_path }} platforms: linux/amd64,linux/arm64 push: true + cache-from: type=gha + cache-to: type=gha,mode=max tags: ${{ steps.prepare_tags.outputs.tags }} build-args: | BUILD_CONTEXT=${{ steps.prepare_tags.outputs.context_dir }}