|
27 | 27 | type: string |
28 | 28 | description: "Environment variables to inject in the reusable workflow as list of key-value pair. This is similar to the GitHub Actions env context that is currently not available when calling a reusable workflow" |
29 | 29 | required: false |
30 | | - cache: |
31 | | - type: boolean |
32 | | - description: "Enable cache to GitHub Actions cache backend" |
33 | | - required: false |
34 | | - default: false |
35 | | - cache-scope: |
36 | | - type: string |
37 | | - description: "Which scope cache object belongs to if cache enabled (defaults to target name)" |
38 | | - required: false |
39 | | - cache-mode: |
40 | | - type: string |
41 | | - description: "Cache layers to export if cache enabled (min or max)" |
42 | | - required: false |
43 | | - default: 'min' |
44 | 30 | context: |
45 | 31 | type: string |
46 | 32 | description: "Context to build from in the Git working tree" |
@@ -370,23 +356,23 @@ jobs: |
370 | 356 | name: Set up QEMU |
371 | 357 | uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 |
372 | 358 | if: ${{ inputs.setup-qemu }} |
| 359 | + with: |
| 360 | + cache-image: false |
373 | 361 | - |
374 | 362 | name: Set up Docker Buildx |
375 | 363 | uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 |
376 | 364 | with: |
377 | 365 | version: ${{ env.BUILDX_VERSION }} |
378 | 366 | buildkitd-flags: --debug |
379 | 367 | driver-opts: image=${{ env.BUILDKIT_IMAGE }} |
| 368 | + cache-binary: false |
380 | 369 | - |
381 | 370 | name: Prepare |
382 | 371 | id: prepare |
383 | 372 | uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
384 | 373 | env: |
385 | 374 | INPUT_PLATFORM: ${{ matrix.platform }} |
386 | 375 | INPUT_LOCAL-EXPORT-DIR: ${{ env.LOCAL_EXPORT_DIR }} |
387 | | - INPUT_CACHE: ${{ inputs.cache }} |
388 | | - INPUT_CACHE-SCOPE: ${{ inputs.cache-scope }} |
389 | | - INPUT_CACHE-MODE: ${{ inputs.cache-mode }} |
390 | 376 | INPUT_CONTEXT: ${{ inputs.context }} |
391 | 377 | INPUT_FILES: ${{ inputs.files }} |
392 | 378 | INPUT_OUTPUT: ${{ inputs.output }} |
@@ -414,9 +400,6 @@ jobs: |
414 | 400 | |
415 | 401 | const inpLocalExportDir = core.getInput('local-export-dir'); |
416 | 402 | |
417 | | - const inpCache = core.getBooleanInput('cache'); |
418 | | - const inpCacheScope = core.getInput('cache-scope'); |
419 | | - const inpCacheMode = core.getInput('cache-mode'); |
420 | 403 | const inpContext = core.getInput('context'); |
421 | 404 | const inpFiles = Util.getInputList('files'); |
422 | 405 | const inpOutput = core.getInput('output'); |
@@ -514,10 +497,6 @@ jobs: |
514 | 497 | if (inpPlatform) { |
515 | 498 | bakeOverrides.push(`*.platform=${inpPlatform}`); |
516 | 499 | } |
517 | | - if (inpCache) { |
518 | | - bakeOverrides.push(`*.cache-from=type=gha,scope=${inpCacheScope || target}${platformPairSuffix}`); |
519 | | - bakeOverrides.push(`*.cache-to=type=gha,scope=${inpCacheScope || target}${platformPairSuffix},mode=${inpCacheMode}`); |
520 | | - } |
521 | 500 | core.info(JSON.stringify(bakeOverrides, null, 2)); |
522 | 501 | core.setOutput('overrides', bakeOverrides.join(os.EOL)); |
523 | 502 | }); |
@@ -567,7 +546,7 @@ jobs: |
567 | 546 | const { Install } = require('@docker/actions-toolkit/lib/cosign/install'); |
568 | 547 | |
569 | 548 | const cosignInstall = new Install(); |
570 | | - const cosignBinPath = await cosignInstall.download(core.getInput('cosign-version'), false, true); |
| 549 | + const cosignBinPath = await cosignInstall.download(core.getInput('cosign-version'), true, true); |
571 | 550 | await cosignInstall.install(cosignBinPath); |
572 | 551 | |
573 | 552 | const cosign = new Cosign(); |
@@ -733,6 +712,7 @@ jobs: |
733 | 712 | version: ${{ env.BUILDX_VERSION }} |
734 | 713 | buildkitd-flags: --debug |
735 | 714 | driver-opts: image=${{ env.BUILDKIT_IMAGE }} |
| 715 | + cache-binary: false |
736 | 716 | - |
737 | 717 | name: Create manifest |
738 | 718 | if: ${{ inputs.output == 'image' }} |
|
0 commit comments