41 lines
711 B
Plaintext
41 lines
711 B
Plaintext
|
def pipeline(
|
||
|
name,
|
||
|
steps,
|
||
|
dependsOn,
|
||
|
):
|
||
|
return {
|
||
|
"kind": "pipeline",
|
||
|
"name": name,
|
||
|
"depends_on": dependsOn,
|
||
|
"steps": steps,
|
||
|
"services": [
|
||
|
{
|
||
|
"name": "docker",
|
||
|
"image": "docker:dind",
|
||
|
"privileged": True,
|
||
|
"volumes": [
|
||
|
{
|
||
|
"name": "dockersock",
|
||
|
"path": "/var/run",
|
||
|
},
|
||
|
{
|
||
|
"name": "ca",
|
||
|
"path": "/etc/docker/certs.d",
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
],
|
||
|
"volumes": [
|
||
|
{
|
||
|
"name": "dockersock",
|
||
|
"temp": {},
|
||
|
},
|
||
|
{
|
||
|
"name": "ca",
|
||
|
"host": {
|
||
|
"path": "/home/giles/gitea-drone-stack/.ca",
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
}
|