build

fun build(imageName: String, imageVersion: String = defaultVersion, context: String = ".", dockerfile: String = "/Dockerfile"): <Error class: unknown class>(source)

Builds an image called imageName of version imageVersion based on the context directory and the specified dockerfile.

If imageName contains a registry name, it is pushed to that registry.

Use kanikoBuild for a already built job.