OpenShift · Schema
DockerBuildStrategy
Docker build strategy that uses a Dockerfile to build images.
CI/CDCloud NativeContainersDevOpsEnterpriseKubernetesPaaS
Properties
| Name | Type | Description |
|---|---|---|
| from | object | |
| dockerfilePath | string | Path of the Dockerfile relative to the context directory. |
| env | array | |
| noCache | boolean | If true, Docker build caching is disabled. |
| forcePull | boolean | Forces a pull of the base image before the build. |
| buildArgs | array | Specifies build arguments to pass to Docker. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/DockerBuildStrategy",
"title": "DockerBuildStrategy",
"type": "object",
"description": "Docker build strategy that uses a Dockerfile to build images.",
"properties": {
"from": {
"$ref": "#/components/schemas/ObjectReference"
},
"dockerfilePath": {
"type": "string",
"description": "Path of the Dockerfile relative to the context directory.",
"example": "example_value"
},
"env": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EnvVar"
},
"example": []
},
"noCache": {
"type": "boolean",
"description": "If true, Docker build caching is disabled.",
"example": true
},
"forcePull": {
"type": "boolean",
"description": "Forces a pull of the base image before the build.",
"example": true
},
"buildArgs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EnvVar"
},
"description": "Specifies build arguments to pass to Docker.",
"example": []
}
}
}