GitLab CI Kotlin DSL • opensavvy.gitlab.ci.plugins • Docker • rename
rename¶
Renames a version of an image
.
This command pulls the image
for the version oldVersion
, renames it to newVersion
, then finally pushes it back.
Parameters¶
- image
-
The name of the image that will be renamed (e.g.
"backend"
). - oldVersion
-
The version that will be renamed. The default version number for this command is the same as the
build
command's, making it easy to use them together. - newVersion
-
The new name of the version.
Samples¶
opensavvy.gitlab.ci.plugins.DockerTest.buildImage