=== Example: bazel
:icons: font
Bazel is one of the supported builders in Skaffold.
The way you configure it in `skaffold.yaml` is the following build stanza:
[source,yaml]
----
build:
artifacts:
- imageName: gcr.io/k8s-skaffold/skaffold-example
workspace: . <1>
bazel: # <2>
target: //:skaffold_example.tar # <3>
----
<1> make sure the workspace contains the bazel files (`WORKSPACE`, `BUILD`)
<2> add bazel to each artifact
<3> specify target - our builder will use this to load to the image to the Docker daemon
ifndef::env-github[]
==== link:{github-repo-tree}/examples/bazel[Example files icon:github[]]
[source,yaml, indent=3, title=skaffold.yaml]
----
include::skaffold.yaml[]
----
[source,go, indent=3, title=main.go, syntax=go]
----
include::main.go[]
----
[source,bazel, indent=3, title=WORKSPACE]
----
include::WORKSPACE[]
----
[source,bazel, indent=3, title=BUILD]
----
include::BUILD[]
----
endif::[]