Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsKanikoCompanionkanikoRename

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.

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