Back to Skaffold

README

integration/examples/bazel/README.md

2.19.0741 B
Original Source

Example: bazel

Bazel is one of the supported builders in Skaffold.

The way you configure it in skaffold.yaml is the following build stanza:

yaml
build:
  artifacts:
  - image: skaffold-bazel
    context: .
    bazel:
      target: //:skaffold-example.tar
  1. make sure the context contains the bazel files (WORKSPACE, BUILD)
  2. add bazel section to each artifact
  3. specify target - our builder will use this to load to the image to the Docker daemon