Docker
Integrate Docker into your build.
This plugin is responsible for adding the docker extension to scripts:
val dockerBuild by job {
useDockerInDocker()
useContainerRegistry()
script {
docker.build("backend")
}
}
Content copied to clipboard
This plugin uses Docker in Docker, which can create security vulnerabilities. To build containers without using Docker in Docker, see the Kaniko plugin.
Job extensions
This plugin provides the following job extensions:
useDockerInDocker: configure the Docker In Docker service,
useContainerRegistry: logs in to the GitLab Container Registry of the current project.
Functions
Link copied to clipboard
fun logInToRegistry(registry: String, username: String, password: String): <Error class: unknown class>
Logs in to an arbitrary container registry.