Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsKanikoCompanionkanikoBuild

kanikoBuild

fun GitLabCi.kanikoBuild(imageName: String, imageVersion: String = defaultVersion, context: String = ".", dockerfile: String = "/Dockerfile", jobName: String? = null, stage: Stage? = null, block: Job.() -> Unit = {}): 

Creates a job that builds the image imageName with version imageVersion. If the imageName contains a registry name, pushes the image to the registry.

This job is automatically configured to communicate with the GitLab container registry.