@rxap/plugin-kaniko (Nx/Ng Plugin)
Installation
Add the plugin to your workspace:
ng add @rxap/plugin-kaniko
Setup the package @rxap/plugin-kaniko for the workspace.
Configure the builder @rxap/plugin-kaniko for a project:
ng g @rxap/plugin-kaniko:config [project]
Adds the @rxap/plugin-kaniko:build to the specified project
Schematics
config
Adds the @rxap/plugin-kaniko:build to the specified project
ng g @rxap/plugin-kaniko:config
Option | Type | Default | Description |
---|---|---|---|
project | string | The name of the project. | |
destination | array | Specify the docker image names | |
context | string | Path to context for the docker build process. | |
dockerfile | string | Path to the dockerfile. | |
buildTarget | string | The target from witch the output path can be extract. | |
command | string | The command to start kaniko | |
cache | boolean | true | Enable kaniko cache feature |
latest | boolean | false | If true a destination with a latest tag is added |
Required |
---|
project |
ng-add
Setup the package @rxap/plugin-kaniko for the workspace.
ng g @rxap/plugin-kaniko:ng-add
Option | Type | Default | Description |
---|---|---|---|
project | string | Name of the project |
Builder
build
build builder
Builder name
@rxap/plugin-kaniko:build
Option | Type | Default | Description |
---|---|---|---|
context | string | The docker build context path | |
dockerfile | string | The path to the dockerfile | |
destination | array | A list of docker image tags | |
buildTarget | string | The target from witch the output path can be extract. | |
imageSuffix | string | A suffix added to the base image name | |
command | string | /kaniko/executor | The command to start kaniko |
cache | boolean | true | Enable kaniko cache feature |
latest | boolean | false | If true a destination with a latest tag is added |
Required |
---|
buildTarget |