|
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" |
@@ -362,23 +348,23 @@ jobs: |
362 | 348 | name: Set up QEMU |
363 | 349 | uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 |
364 | 350 | if: ${{ inputs.setup-qemu }} |
| 351 | + with: |
| 352 | + cache-image: false |
365 | 353 | - |
366 | 354 | name: Set up Docker Buildx |
367 | 355 | uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 |
368 | 356 | with: |
369 | 357 | version: ${{ env.BUILDX_VERSION }} |
370 | 358 | buildkitd-flags: --debug |
371 | 359 | driver-opts: image=${{ env.BUILDKIT_IMAGE }} |
| 360 | + cache-binary: false |
372 | 361 | - |
373 | 362 | name: Prepare |
374 | 363 | id: prepare |
375 | 364 | uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
376 | 365 | env: |
377 | 366 | INPUT_PLATFORM: ${{ matrix.platform }} |
378 | 367 | INPUT_LOCAL-EXPORT-DIR: ${{ env.LOCAL_EXPORT_DIR }} |
379 | | - INPUT_CACHE: ${{ inputs.cache }} |
380 | | - INPUT_CACHE-SCOPE: ${{ inputs.cache-scope }} |
381 | | - INPUT_CACHE-MODE: ${{ inputs.cache-mode }} |
382 | 368 | INPUT_CONTEXT: ${{ inputs.context }} |
383 | 369 | INPUT_FILES: ${{ inputs.files }} |
384 | 370 | INPUT_OUTPUT: ${{ inputs.output }} |
@@ -406,9 +392,6 @@ jobs: |
406 | 392 | |
407 | 393 | const inpLocalExportDir = core.getInput('local-export-dir'); |
408 | 394 | |
409 | | - const inpCache = core.getBooleanInput('cache'); |
410 | | - const inpCacheScope = core.getInput('cache-scope'); |
411 | | - const inpCacheMode = core.getInput('cache-mode'); |
412 | 395 | const inpContext = core.getInput('context'); |
413 | 396 | const inpFiles = Util.getInputList('files'); |
414 | 397 | const inpOutput = core.getInput('output'); |
@@ -506,10 +489,6 @@ jobs: |
506 | 489 | if (inpPlatform) { |
507 | 490 | bakeOverrides.push(`*.platform=${inpPlatform}`); |
508 | 491 | } |
509 | | - if (inpCache) { |
510 | | - bakeOverrides.push(`*.cache-from=type=gha,scope=${inpCacheScope || target}${platformPairSuffix}`); |
511 | | - bakeOverrides.push(`*.cache-to=type=gha,scope=${inpCacheScope || target}${platformPairSuffix},mode=${inpCacheMode}`); |
512 | | - } |
513 | 492 | core.info(JSON.stringify(bakeOverrides, null, 2)); |
514 | 493 | core.setOutput('overrides', bakeOverrides.join(os.EOL)); |
515 | 494 | }); |
@@ -559,7 +538,7 @@ jobs: |
559 | 538 | const { Install } = require('@docker/actions-toolkit/lib/cosign/install'); |
560 | 539 | |
561 | 540 | const cosignInstall = new Install(); |
562 | | - const cosignBinPath = await cosignInstall.download(core.getInput('cosign-version'), false, true); |
| 541 | + const cosignBinPath = await cosignInstall.download(core.getInput('cosign-version'), true, true); |
563 | 542 | await cosignInstall.install(cosignBinPath); |
564 | 543 | |
565 | 544 | const cosign = new Cosign(); |
@@ -725,6 +704,7 @@ jobs: |
725 | 704 | version: ${{ env.BUILDX_VERSION }} |
726 | 705 | buildkitd-flags: --debug |
727 | 706 | driver-opts: image=${{ env.BUILDKIT_IMAGE }} |
| 707 | + cache-binary: false |
728 | 708 | - |
729 | 709 | name: Create manifest |
730 | 710 | if: ${{ inputs.output == 'image' }} |
|
0 commit comments