33 lines
547 B
Plaintext
33 lines
547 B
Plaintext
def pipeline(
|
|
name,
|
|
steps,
|
|
dependsOn,
|
|
volumes,
|
|
dockerVolumes
|
|
):
|
|
return {
|
|
"kind": "pipeline",
|
|
"name": name,
|
|
"depends_on": dependsOn,
|
|
"steps": steps,
|
|
"services": [
|
|
{
|
|
"name": "docker",
|
|
"image": "docker:dind",
|
|
"privileged": True,
|
|
"volumes": [
|
|
{
|
|
"name": "dockersock",
|
|
"path": "/var/run",
|
|
},
|
|
] + dockerVolumes,
|
|
}
|
|
],
|
|
"volumes": [
|
|
{
|
|
"name": "dockersock",
|
|
"temp": {},
|
|
},
|
|
] + volumes,
|
|
}
|