image
fun image(name: String, version: String = "latest", configuration: ContainerImage.() -> Unit = {})(source)
The container image used to execute this job.
Example
val ubuntu by job {
image("ubuntu")
script {
shell("echo 'Hello world!'")
}
}
Content copied to clipboard
In this example, the runner will download the latest Ubuntu image and run the bash script that prints Hello world!
.