Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsKanikoCompanionkanikoRename

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.

If the image names contain registry urls, the images are pull/pushed to the respective registry.