Companion¶
object Companion
Properties¶
defaultVersion¶
const val defaultVersion: String
Unique version used as a default value when unspecified.
docker¶
val CommandDsl.docker: Docker
Accesses Docker commands.
To use this plugin, the docker command must be available to this job. To automatically set it up, see useDockerInDocker.
Samples
opensavvy.gitlab.ci.plugins.DockerTest.buildImage
Functions¶
useContainerRegistry¶
fun Job.useContainerRegistry()
Logs in the current job to the GitLab Container Registry.
For more information, see the GitLab documentation.
Samples
opensavvy.gitlab.ci.plugins.DockerTest.buildImage
useDockerInDocker¶
fun Job.useDockerInDocker(dockerVersion: String = "20.10", dockerInDockerVersion: String = "-dind")
Configures the current job to use the docker command using Docker In Docker.
For more information, see the GitLab documentation.
Parameters
-
dockerVersion: The version of Docker to use, which must correspond to a tag of the official docker image.
-
dockerInDockerVersion: The version of the Docker, which must correspond to a tag of the official docker image with DinD enabled.
Samples
opensavvy.gitlab.ci.plugins.DockerTest.buildImage