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.
stack/drone-starlark/repos/pipeline.star

43 lines
774 B
Plaintext
Raw Normal View History

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
#{
# "name": "ca",
# "path": "/etc/docker/certs.d",
#},
] + dockerVolumes,
2020-04-27 16:54:20 +00:00
}
],
"volumes": [
{
"name": "dockersock",
"temp": {},
},
2020-04-27 19:36:06 +00:00
#{
# "name": "ca",
# "host": {
# "path": "/home/giles/gitea-drone-stack/.ca",
# },
#},
] + volumes,
2020-04-27 16:54:20 +00:00
}