From 28a9fe3d71065cf147a6058f87666765578562ef Mon Sep 17 00:00:00 2001 From: chiragrajk Date: Wed, 18 Sep 2024 09:42:16 +0200 Subject: [PATCH] enh: Cache docker on registry ECR --- .github/workflows/docker-build-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 4b7099c..48a3eab 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -79,7 +79,7 @@ jobs: push: true tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} - cache-from: type=s3,blobs_prefix=cache/${{ github.repository }}/,manifests_prefix=cache/${{ github.repository }}/,region=${{ env.AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }} - cache-to: type=s3,blobs_prefix=cache/${{ github.repository }}/,manifests_prefix=cache/${{ github.repository }}/,region=${{ env.AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }},mode=max + cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.ecr-login.outputs.registry }}/${{ inputs.image }}:cache + cache-from: type=registry,ref=${{ steps.ecr-login.outputs.registry }}/${{ inputs.image }}:cache build-args: | COMMIT_ID=${{ steps.export-sha.outputs.sha_short }}