diff --git a/README.md b/README.md index 68067d4..fc0f55e 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,12 @@ The following outputs are available: | `digest` | String | Image digest | | `metadata` | JSON | Build result metadata | +### environment variables + +| Name | Type | Description | +|---------------------------|------|-------------------------------------------------| +| `DOCKER_BUILD_NO_SUMMARY` | Bool | If `true`, build summary generation is disabled | + ## Troubleshooting See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) diff --git a/src/main.ts b/src/main.ts index c0656dd..0cc1dc7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -136,6 +136,10 @@ actionsToolkit.run( async () => { if (stateHelper.buildRef.length > 0) { await core.group(`Generating build summary`, async () => { + if (process.env.DOCKER_BUILD_NO_SUMMARY && Util.parseBool(process.env.DOCKER_BUILD_NO_SUMMARY)) { + core.info('Summary disabled'); + return; + } try { const buildxHistory = new BuildxHistory(); const exportRes = await buildxHistory.export({