drone/drone-starlark/repos/pipeline.star

33 lines
554 B
Plaintext
Raw Normal View History

2020-05-10 16:16:11 +00:00
def pipeline(
name,
steps,
dependsOn,
volumes,
dockerVolumes
):
return {
"kind": "pipeline",
"name": name,
"depends_on": dependsOn,
"steps": steps,
"services": [
{
"name": "docker",
2020-08-13 09:40:33 +00:00
"image": "docker:stable-dind",
2020-05-10 16:16:11 +00:00
"privileged": True,
"volumes": [
{
"name": "dockersock",
"path": "/var/run",
},
] + dockerVolumes,
}
],
"volumes": [
{
"name": "dockersock",
"temp": {},
},
] + volumes,
}