GitLab CI Kotlin DSL • opensavvy.gitlab.ci.plugins • Kaniko • Companion
Companion¶
object Companion
Properties¶
kaniko¶
val CommandDsl.kaniko: 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 = {}): DelegateProvider<GitLabCi, ReadOnlyDelegate<ERROR CLASS: Cannot infer argument for type parameter Type>>
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, oldVersion: String = defaultVersion, newVersion: String = "latest", jobName: String? = null, stage: Stage? = null, block: Job.() -> Unit = {}): DelegateProvider<GitLabCi, ReadOnlyDelegate<ERROR CLASS: Cannot infer argument for type parameter Type>>
Creates a job that changes the version of the image imageName from oldVersion to newVersion.