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
* Manage container layers in generated image
  • Loading branch information
gansheer committed Aug 21, 2023
1 parent cc7840f commit ded8201
Show file tree
Hide file tree
Showing 24 changed files with 1,103 additions and 14 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 @@ -693,6 +693,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 ded8201

Please sign in to comment.