From cc5ec8b0ddf989397bbf9798af575bccf328cb63 Mon Sep 17 00:00:00 2001 From: Jayant <39442192+RoguedBear@users.noreply.github.com> Date: Mon, 20 Nov 2023 18:08:11 +0000 Subject: [PATCH] cache docker build layers * testing if gha cache is used https://docs.docker.com/engine/reference/commandline/buildx_build/#cache-from https://docs.docker.com/engine/reference/commandline/buildx_build/#cache-to * try out inline cache src: https://github.com/moby/buildkit#export-cache * go back to using gha cache --- .github/workflows/build-images.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 01e5bf0..da1f80a 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -71,4 +71,6 @@ jobs: context: . push: true tags: ${{ vars.DOCKERHUB_TAG }}:${{ steps.image_tag.outputs.TAG }} - platforms: linux/amd64,linux/arm64,linux/arm/v7 \ No newline at end of file + platforms: linux/amd64,linux/arm64,linux/arm/v7 + cache-from: type=gha + cache-to: type=gha,mode=max