This repository has been archived on 2020-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-27 16:54:20 +00:00
|
|
|
def pipeline(
|
|
|
|
name,
|
|
|
|
steps,
|
|
|
|
dependsOn,
|
2020-04-27 19:36:06 +00:00
|
|
|
volumes,
|
|
|
|
dockerVolumes
|
2020-04-27 16:54:20 +00:00
|
|
|
):
|
|
|
|
return {
|
|
|
|
"kind": "pipeline",
|
|
|
|
"name": name,
|
|
|
|
"depends_on": dependsOn,
|
|
|
|
"steps": steps,
|
|
|
|
"services": [
|
|
|
|
{
|
|
|
|
"name": "docker",
|
|
|
|
"image": "docker:dind",
|
|
|
|
"privileged": True,
|
|
|
|
"volumes": [
|
|
|
|
{
|
|
|
|
"name": "dockersock",
|
|
|
|
"path": "/var/run",
|
|
|
|
},
|
2020-04-27 19:36:06 +00:00
|
|
|
] + dockerVolumes,
|
2020-04-27 16:54:20 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"volumes": [
|
|
|
|
{
|
|
|
|
"name": "dockersock",
|
|
|
|
"temp": {},
|
|
|
|
},
|
2020-04-27 19:36:06 +00:00
|
|
|
] + volumes,
|
2020-04-27 16:54:20 +00:00
|
|
|
}
|