Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsDockerpush

push

fun push(image: String, version: String = defaultVersion): 

Pushes the image to a container registry.

Before pushing to a container registry, you may want to logInToRegistry.

Parameters

image

The name of the image that will be pushed (e.g. "backend"). The image must exist locally.

version

The version of the image to push. The default version number for this command is the same as the build command's, making it easy to use them together.

Samples

opensavvy.gitlab.ci.plugins.DockerTest.buildImage