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<Job>>
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.
kanikoRename¶
fun GitLabCi.kanikoRename(
imageName: String,
oldVersion: String = defaultVersion,
newVersion: String = "latest",
jobName: String? = null,
stage: Stage? = null,
block: Job.() -> Unit = {}
): DelegateProvider<GitLabCi, ReadOnlyDelegate<Job>>
Creates a job that changes the version of the image imageName from oldVersion to newVersion.
If the image names contain registry urls, the images are pull/pushed to the respective registry.