OpenShift · Schema

DockerBuildStrategy

Docker build strategy that uses a Dockerfile to build images.

CI/CDCloud-NativeContainersDevOpsEnterpriseKubernetesPlatform-as-a-Service

Properties

Name Type Description
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.
View JSON Schema on GitHub

JSON Schema

openshift-rest-docker-build-strategy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DockerBuildStrategy",
  "type": "object",
  "description": "Docker build strategy that uses a Dockerfile to build images.",
  "properties": {
    "dockerfilePath": {
      "type": "string",
      "description": "Path of the Dockerfile relative to the context directory."
    },
    "env": {
      "type": "array"
    },
    "noCache": {
      "type": "boolean",
      "description": "If true, Docker build caching is disabled."
    },
    "forcePull": {
      "type": "boolean",
      "description": "Forces a pull of the base image before the build."
    },
    "buildArgs": {
      "type": "array",
      "description": "Specifies build arguments to pass to Docker."
    }
  }
}