github.com/GoogleContainerTools/skaffold/v2@v2.13.2/docs-v2/content/en/docs/builders/build-environments/local.md (about)

     1  ---
     2  title: "Local build"
     3  linkTitle: "Local build"
     4  weight: 10
     5  ---
     6  
     7  Local build execution is the default execution context.
     8  Skaffold will use your locally-installed build tools (such as Docker, Bazel, Maven or Gradle) to execute the build.
     9  
    10  ## Configuration
    11  
    12  To configure the local execution explicitly, add build type `local` to the build section of `skaffold.yaml`
    13  
    14  ```yaml
    15  build:
    16    local: {}
    17  ```
    18  
    19  The following options can optionally be configured:
    20  
    21  {{< schema root="LocalBuild" >}}
    22  
    23  ## Faster builds
    24  
    25  There are a few options for achieving faster local builds.
    26  
    27  ### Avoiding pushes
    28  
    29  When deploying to a [local cluster]({{<relref "/docs/environment/local-cluster" >}}), 
    30  Skaffold defaults `push` to `false` to speed up builds.  The `push`
    31  setting can be set from the command-line with `--push`.
    32  
    33  ### Parallel builds
    34  
    35  The `concurrency` controls the number of image builds that are run in parallel.
    36  Skaffold disables concurrency by default for local builds as several
    37  image builder types (`custom`, `jib`) may change files on disk and
    38  result in side-effects.
    39  `concurrency` can be set to `0` to enable full parallelism, though
    40  this may consume significant resources.
    41  The concurrency setting can be set from the command-line with the
    42  `--build-concurrency` flag.
    43  
    44  When artifacts are built in parallel, the build logs are still printed in sequence to make them easier to read.
    45  
    46  ### Build avoidance with `tryImportMissing`
    47  
    48  `tryImportMissing: true` causes Skaffold to avoid building an image when
    49  the tagged image already exists in the destination.  This setting can be
    50  useful for images that are expensive to build.
    51  
    52  `tryImportMissing` is disabled by default to avoid the risk from importing
    53  a _stale image_, where the imported image is different from the image
    54  that would have been built from the artifact source.
    55  `tryImportMissing` is best used with a
    56  [tagging policy]({{<relref "/docs/taggers" >}}) such as
    57  `imageDigest` or `gitCommit`'s `TreeSha` or `AbbrevTreeSha` variants,
    58  where the tag is computed using the artifact's contents.