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