Skip to content

Commit 1f4c352

Browse files
committed
enh: Switch image build cache to registry
1 parent f7b6b0e commit 1f4c352

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
push: true
8282
tags: ${{ steps.metadata.outputs.tags }}
8383
labels: ${{ steps.metadata.outputs.labels }}
84-
cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ steps.ecr-login.outputs.registry }}/${{ inputs.image }}:cache
84+
cache-to: mode=max,type=registry,ref=${{ steps.ecr-login.outputs.registry }}/${{ inputs.image }}:cache,compression=zstd,force-compression=true
8585
cache-from: type=registry,ref=${{ steps.ecr-login.outputs.registry }}/${{ inputs.image }}:cache
8686
build-args: |
8787
COMMIT_ID=${{ steps.export-sha.outputs.sha_short }}

.github/workflows/task-definition-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ jobs:
159159
tags: ${{ steps.metadata.outputs.tags }}
160160
labels: ${{ steps.metadata.outputs.labels }}
161161

162-
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 }}
163-
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
162+
cache-to: mode=max,type=registry,ref=${{ inputs.image-uri }}:cache,compression=zstd,force-compression=true
163+
cache-from: type=registry,ref=${{ inputs.image-uri }}:cache
164164
build-args: |
165165
COMMIT_ID=${{ steps.export-sha.outputs.sha_short }}
166166

0 commit comments

Comments
 (0)