File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -150,8 +150,10 @@ jobs:
150150 tags : ${{ env.SERVER_IMAGE }}
151151 outputs : type=image,push-by-digest=true,name-canonical=true,push=true
152152 provenance : false
153- cache-from : type=gha
154- cache-to : type=gha,mode=max
153+ cache-from : |
154+ type=registry,ref=${{ env.SERVER_IMAGE }}:buildcache-${{ github.ref_name }}-${{ matrix.arch }}
155+ type=registry,ref=${{ env.SERVER_IMAGE }}:buildcache-main-${{ matrix.arch }}
156+ cache-to : type=registry,ref=${{ env.SERVER_IMAGE }}:buildcache-${{ github.ref_name }}-${{ matrix.arch }},mode=max
155157
156158 - name : Tag server image with temp per-arch tag
157159 run : |
@@ -187,8 +189,10 @@ jobs:
187189 tags : ${{ env.BOT_IMAGE }}
188190 outputs : type=image,push-by-digest=true,name-canonical=true,push=true
189191 provenance : false
190- cache-from : type=gha
191- cache-to : type=gha,mode=max
192+ cache-from : |
193+ type=registry,ref=${{ env.BOT_IMAGE }}:buildcache-${{ github.ref_name }}-${{ matrix.arch }}
194+ type=registry,ref=${{ env.BOT_IMAGE }}:buildcache-main-${{ matrix.arch }}
195+ cache-to : type=registry,ref=${{ env.BOT_IMAGE }}:buildcache-${{ github.ref_name }}-${{ matrix.arch }},mode=max
192196
193197 - name : Export digest (my-core-bot)
194198 run : |
Original file line number Diff line number Diff line change @@ -106,8 +106,10 @@ jobs:
106106 push : true
107107 tags : ${{ steps.arch-tags.outputs.arch-tags }}
108108 labels : ${{ steps.meta.outputs.labels }}
109- cache-from : type=gha
110- cache-to : type=gha,mode=max
109+ cache-from : |
110+ type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-${{ github.ref_name }}-${{ matrix.architecture }}
111+ type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-main-${{ matrix.architecture }}
112+ cache-to : type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-${{ github.ref_name }}-${{ matrix.architecture }},mode=max
111113
112114 - name : Build Docker image (PR test)
113115 if : github.event_name == 'pull_request'
@@ -118,8 +120,9 @@ jobs:
118120 platforms : ${{ matrix.platform }}
119121 push : false
120122 tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test-${{ matrix.architecture }}
121- cache-from : type=gha
122- cache-to : type=gha,mode=max
123+ cache-from : |
124+ type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-${{ github.ref_name }}-${{ matrix.architecture }}
125+ type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-main-${{ matrix.architecture }}
123126
124127 - name : Show build information
125128 run : |
You can’t perform that action at this time.
0 commit comments