From 2587769e9a279a7aa8b1222e734c8a136881abae Mon Sep 17 00:00:00 2001 From: Luke Addison Date: Thu, 28 Dec 2023 09:50:14 +0000 Subject: [PATCH] Add registry cache --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ef93431..17b7af2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,3 +63,6 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/cost-manager:${{ env.BRANCH == 'main' && 'latest' || env.BRANCH }} + # https://docs.docker.com/build/ci/github-actions/cache/#registry-cache + cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/cost-manager:buildcache + cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/cost-manager:buildcache,mode=max