Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] minimal jib gcb docs #3179

Merged
merged 1 commit into from
Nov 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion docs/content/en/docs/pipeline-stages/builders.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,24 @@ a container image. Then for each such sub-project:

## Jib Maven and Gradle remotely with Google Cloud Build

{{% todo 1299 %}}
Similar to building [Dockerfile remotely on Google Cloud Build](#dockerfile-remotely-with-google-cloud-build), you can also build
maven and gradle projects remotely using Jib.
Jib cloud builder is one of the [supported builders for Google Cloud Build](https://cloud.google.com/cloud-build/docs/cloud-builders#supported_builder_images_provided_by_product_name_short).

**Configuration**

Similar to building [Dockerfile remotely on Google Cloud Build](#dockerfile-remotely-with-google-cloud-build), to use Cloud Build, add build type `googleCloudBuild` to the `build`
section of `skaffold.yaml`. The following options can optionally be configured:

{{< schema root="GoogleCloudBuild" >}}

**Example**

The following `build` section, instructs Skaffold to build
`gcr.io/k8s-skaffold/project1` with Google Cloud Build using Jib builder:

{{% readfile file="samples/builders/gcb-jib.yaml" %}}


## Bazel locally

Expand Down
6 changes: 6 additions & 0 deletions docs/content/en/samples/builders/gcb-jib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build:
artifacts:
- image: gcr.io/k8s-skaffold/project1
jib: {}
googleCloudBuild:
projectId: YOUR-GCP-PROJECT