Skip to content

Commit e250e90

Browse files
tejal29dgageot
authored andcommitted
minimal jib gcb docs (#3179)
1 parent c0bc2d3 commit e250e90

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

docs/content/en/docs/pipeline-stages/builders.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,24 @@ a container image. Then for each such sub-project:
221221

222222
## Jib Maven and Gradle remotely with Google Cloud Build
223223

224-
{{% todo 1299 %}}
224+
Similar to building [Dockerfile remotely on Google Cloud Build](#dockerfile-remotely-with-google-cloud-build), you can also build
225+
maven and gradle projects remotely using Jib.
226+
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).
227+
228+
**Configuration**
229+
230+
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`
231+
section of `skaffold.yaml`. The following options can optionally be configured:
232+
233+
{{< schema root="GoogleCloudBuild" >}}
234+
235+
**Example**
236+
237+
The following `build` section, instructs Skaffold to build
238+
`gcr.io/k8s-skaffold/project1` with Google Cloud Build using Jib builder:
239+
240+
{{% readfile file="samples/builders/gcb-jib.yaml" %}}
241+
225242

226243
## Bazel locally
227244

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build:
2+
artifacts:
3+
- image: gcr.io/k8s-skaffold/project1
4+
jib: {}
5+
googleCloudBuild:
6+
projectId: YOUR-GCP-PROJECT

0 commit comments

Comments
 (0)