|
74 | 74 | steps: |
75 | 75 | - name: Checkout |
76 | 76 | uses: actions/checkout@v4 |
| 77 | + - name: Inject enhanced GitHub environment variables |
| 78 | + uses: rlespinasse/github-slug-action@v5 |
77 | 79 | - name: Load spack version and cherry-picks |
78 | 80 | id: spack |
79 | 81 | shell: bash |
@@ -176,8 +178,10 @@ jobs: |
176 | 178 | EICSPACK_ORGREPO=${{ steps.eic-spack.outputs.orgrepo }} |
177 | 179 | EICSPACK_VERSION=${{ steps.eic-spack.outputs.version }} |
178 | 180 | jobs=${{ env.JOBS }} |
179 | | - cache-from: type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}-${{ matrix.arch }} |
180 | | - cache-to: type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}-${{ matrix.arch }},mode=max |
| 181 | + cache-from: | |
| 182 | + type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}-${{ env.GITHUB_REF_NAME_SLUG }}-${{ matrix.arch }} |
| 183 | + type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}-${{ env.GITHUB_BASE_REF_SLUG }}-${{ matrix.arch }} |
| 184 | + cache-to: type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}-${{ env.GITHUB_REF_NAME_SLUG }}-${{ matrix.arch }},mode=max |
181 | 185 | - name: Export digest to file |
182 | 186 | # The build-push action outputs the digest at steps.build.outputs.digest |
183 | 187 | # We write this to a file for the next job |
@@ -305,6 +309,8 @@ jobs: |
305 | 309 | export CI_REGISTRY=ghcr.io |
306 | 310 | export CI_PROJECT_PATH=eic |
307 | 311 | cat mirrors.yaml.in | envsubst > mirrors.yaml |
| 312 | + - name: Inject enhanced GitHub environment variables |
| 313 | + uses: rlespinasse/github-slug-action@v5 |
308 | 314 | - name: Set up QEMU |
309 | 315 | uses: docker/setup-qemu-action@v3 |
310 | 316 | with: |
@@ -384,8 +390,10 @@ jobs: |
384 | 390 | RUNTIME_IMAGE=${{ matrix.RUNTIME_IMAGE }} |
385 | 391 | INTERNAL_TAG=${{ env.INTERNAL_TAG }} |
386 | 392 | ENV=${{ matrix.ENV }} |
387 | | - cache-from: type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}${{ matrix.ENV }}-${{ matrix.arch }} |
388 | | - cache-to: type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}${{ matrix.ENV }}-${{ matrix.arch }},mode=max |
| 393 | + cache-from: | |
| 394 | + type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}${{ matrix.ENV }}-${{ env.GITHUB_REF_NAME_SLUG }}-${{ matrix.arch }} |
| 395 | + type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}${{ matrix.ENV }}-${{ env.GITHUB_BASE_REF_SLUG }}-${{ matrix.arch }} |
| 396 | + cache-to: type=registry,ref=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/buildcache:${{ matrix.BUILD_IMAGE }}${{ matrix.ENV }}-${{ env.GITHUB_REF_NAME_SLUG }}-${{ matrix.arch }},mode=max |
389 | 397 | - name: Export digest to file |
390 | 398 | # The build-push action outputs the digest at steps.build.outputs.digest |
391 | 399 | # We write this to a file for the next job |
|
0 commit comments