Skip to content

Commit

Permalink
feat(#1656) : jib publish strategy
Browse files Browse the repository at this point in the history
* Add publish jib strategy compatible with incremental build and native build
* Use google jib maven plugin
* Use builder maven profiles trait to configure jib plugin
 * The ConfigMap is created with:
   * maven jib plugin profile content in profile.xml
   * kit as an owner
 * The Jib Profile is used in the Jib published strategy
  • Loading branch information
gansheer authored and squakez committed Aug 30, 2023
1 parent 8f7b1a6 commit 0429052
Show file tree
Hide file tree
Showing 29 changed files with 1,269 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
strategy:
fail-fast: false
matrix:
publisher: ["Buildah", "Spectrum", "Kaniko"]
publisher: ["Buildah", "Spectrum", "Kaniko", "Jib"]

steps:
- name: Checkout code
Expand Down
37 changes: 37 additions & 0 deletions config/crd/bases/camel.apache.org_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,43 @@ spec:
description: name of the task
type: string
type: object
jib:
description: a JibTask, for Jib strategy
properties:
baseImage:
description: base image layer
type: string
contextDir:
description: can be useful to share info with other tasks
type: string
image:
description: final image name
type: string
name:
description: name of the task
type: string
registry:
description: where to publish the final image
properties:
address:
description: the URI to access
type: string
ca:
description: the configmap which stores the Certificate
Authority
type: string
insecure:
description: if the container registry is insecure (ie,
http only)
type: boolean
organization:
description: the registry organization
type: string
secret:
description: the secret where credentials are stored
type: string
type: object
type: object
kaniko:
description: a KanikoTask, for Kaniko strategy
properties:
Expand Down
4 changes: 2 additions & 2 deletions config/samples/patch-integration-platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ spec:
#
#
# Build publish strategy for integrations
# ie. Buildah, Kaniko, S2I, Spectrum
# ie. Buildah, Kaniko, S2I, Spectrum, Jib
#
# publishStrategy: Buildah | Kaniko | S2I | Spectrum
# publishStrategy: Buildah | Kaniko | S2I | Spectrum | Jib
#
# Set the camel-k runtime version
#
Expand Down
Loading

0 comments on commit 0429052

Please sign in to comment.