Build summary (original) (raw)

GitHub Actions build summary

Docker's GitHub Actions for building and pushing images generate a job summary for your build that outlines the execution and materials used:

A GitHub Actions build summary

A GitHub Actions build summary

Job summaries for Docker builds appear automatically if you use the following versions of the Build and push Docker imagesor Docker Buildx BakeGitHub Actions:

To view the job summary, open the details page for the job in GitHub after the job has finished. The summary is available for both failed and successful builds. In the case of a failed build, the summary also displays the error message that caused the build to fail:

Builds summary error message

Builds summary error message

Availability: Beta

Requires: Docker Desktop4.31 and later

The job summary includes a link for downloading a build record archive for the run. The build record archive is a ZIP file containing the details about a build (or builds, if you use docker/bake-action to build multiple targets). You can import this build record archive into Docker Desktop, which gives you a powerful, graphical interface for further analyzing the build's performance via theDocker Desktop Builds view.

To import the build record archive into Docker Desktop:

  1. Download and installDocker Desktop.
  2. Download the build record archive from the job summary in GitHub Actions.
  3. Open the Builds view in Docker Desktop.
  4. Select the Import build button, and then browse for the .zip archive job summary that you downloaded. Alternatively, you can drag-and-drop the build record archive ZIP file onto the Docker Desktop window after opening the import build dialog.
  5. Select Import to add the build records.

After a few seconds, the builds from the GitHub Actions run appear under theCompleted builds tab in the Builds view. To inspect a build and see a detailed view of all the inputs, results, build steps, and cache utilization, select the item in the list.

To disable job summaries, set the DOCKER_BUILD_SUMMARY environment variable in the YAML configuration for your build step:

To disable the upload of the build record archive to GitHub, set theDOCKER_BUILD_RECORD_UPLOAD environment variable in the YAML configuration for your build step:

With this configuration, the build summary is still generated, but does not contain a link to download the build record archive.

Build summaries are currently not supported for: