@@ -122,15 +122,16 @@ runs:
122122 fi
123123
124124 - name : Build
125+ id : build
125126 uses : docker/build-push-action@v6
126127 with :
127128 context : ${{ inputs.distribution }}
128129 push : false
129130 load : true
130131 platforms : ${{ inputs.platform }}
131132 tags : ${{ github.sha }}:${{ steps.platform.outputs.display_name }}
132- cache-from : type=gha ${{ inputs.run_type == 'release' && format(',scope={0}-{1}', inputs.distribution, steps.platform.outputs.display_name) || '' }}
133- cache-to : type=gha,mode=max ${{ inputs.run_type == 'release' && format(',scope={0}-{1}', inputs.distribution, steps.platform.outputs.display_name) || '' }}
133+ cache-from : ${{ inputs.run_type == 'release' && format('type=gha ,scope={0}-{1}', inputs.distribution, steps.platform.outputs.display_name) || '' }}
134+ cache-to : ${{ inputs.run_type == 'release' && format('type=gha,mode=max ,scope={0}-{1}', inputs.distribution, steps.platform.outputs.display_name) || '' }}
134135 build-args : |
135136 REDISEARCH_VERSION=${{ inputs.redisearch_version }}
136137 REDISJSON_VERSION=${{ inputs.redisjson_version }}
@@ -345,8 +346,8 @@ runs:
345346 context : ${{ inputs.distribution }}
346347 push : true
347348 tags : ${{ steps.format-registry-tag.outputs.tag }}
348- cache-from : type=gha
349- cache-to : type=gha,mode=max
349+ cache-from : ${{ inputs.run_type == 'release' && ' type=gha' || '' }}
350+ cache-to : ${{ inputs.run_type == 'release' && ' type=gha,mode=max' || '' }}
350351 build-args : |
351352 REDISEARCH_VERSION=${{ inputs.redisearch_version }}
352353 REDISJSON_VERSION=${{ inputs.redisjson_version }}
0 commit comments