@@ -124,6 +124,12 @@ jobs:
124124 echo "cache-map<<9743a66f914cc249efca164485a19c5c"
125125 jq --arg 'id_suffix' '-linux/amd64' 'to_entries | map({(.key): {target: .value, id: "\(.key)\($id_suffix)"}})' << 9743a66f914cc249efca164485a19c5c
126126 ${{ inputs.buildkit-mount-caches }}
127+ 9743a66f914cc249efca164485a19c5c
128+ echo "9743a66f914cc249efca164485a19c5c"
129+
130+ echo "cache-paths<<9743a66f914cc249efca164485a19c5c"
131+ jq -r 'to_entries | .[].key' << 9743a66f914cc249efca164485a19c5c
132+ ${{ inputs.buildkit-mount-caches }}
127133 9743a66f914cc249efca164485a19c5c
128134 echo "9743a66f914cc249efca164485a19c5c"
129135 } >> $GITHUB_OUTPUT
@@ -135,8 +141,7 @@ jobs:
135141 uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
136142 with :
137143 path : |
138- home-cache
139- home-cargo
144+ ${{ steps.vars.outputs.cache-paths }}
140145 key : buildkit-mount-${{ inputs.title }}-${{ steps.vars.outputs.platform-pair }}-${{ github.sha }}
141146 restore-keys : |
142147 buildkit-mount-${{ inputs.title }}-${{ steps.vars.outputs.platform-pair }}-
@@ -146,16 +151,7 @@ jobs:
146151 uses : reproducible-containers/buildkit-cache-dance@5b6db76d1da5c8b307d5d2e0706d266521b710de # v3.1.2
147152 with :
148153 cache-map : |
149- {
150- "home-cache": {
151- "target": "/root/.cache",
152- "id": "home-cache-${{ matrix.platform }}"
153- },
154- "home-cargo": {
155- "target": "/root/.cargo",
156- "id": "home-cargo-${{ matrix.platform }}"
157- }
158- }
154+ ${{ steps.vars.outputs.cache-map }}
159155
160156 - name : Build and push Docker image
161157 id : build-and-push
0 commit comments