DOCKER_BUILD_NO_SUMMARY env to disable summary

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-05-15 09:40:14 +02:00
parent d880b1964b
commit 667cb22c52
No known key found for this signature in database
GPG key ID: ADE44D8C9D44FBE4
3 changed files with 34 additions and 0 deletions

View file

@ -141,6 +141,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({