bazel

command
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

README

=== 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:
     - image: gcr.io/k8s-skaffold/skaffold-example
       context: . <1>
       bazel: # <2>
         target: //:skaffold_example.tar # <3>
----
<1> make sure the context 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::[]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL