Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsKanikoCompanion

Companion

object Companion

Properties

kaniko

Functions

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.

kanikoRename

fun GitLabCi.kanikoRename(imageName: String, newImageName: String = imageName, oldVersion: String = defaultVersion, newVersion: String = "latest", jobName: String? = null, stage: Stage? = null, block: Job.() -> Unit = {}): 

Creates a job that renames the image imageName to newImageName and changes its version from oldVersion to newVersion.