Skip to content

Commit

Permalink
enh: Cache docker on registry ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragrajk committed Sep 18, 2024
1 parent 16273d0 commit 28a9fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 28a9fe3

Please sign in to comment.