public StepsRunner tarBuildSteps(Path outputPath) {
    rootProgressDescription = "building image to tar file";

    addRetrievalSteps(true); // always pull layers for tar builds
    stepsToRun.add(this::buildAndCacheApplicationLayers);
    stepsToRun.add(this::buildImages);

    // create a tar
    stepsToRun.add(
        progressDispatcherFactory -> writeTarFile(outputPath, progressDispatcherFactory));
    return this;
  }
Add steps for writing an image as a tar file archive.

@param outputPath the target file path to write the image to
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/StepsRunner.java