git - drone - ghost - guacamole - rocket chat https://sigyl.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 

33 lines
547 B

  1. def pipeline(
  2. name,
  3. steps,
  4. dependsOn,
  5. volumes,
  6. dockerVolumes
  7. ):
  8. return {
  9. "kind": "pipeline",
  10. "name": name,
  11. "depends_on": dependsOn,
  12. "steps": steps,
  13. "services": [
  14. {
  15. "name": "docker",
  16. "image": "docker:dind",
  17. "privileged": True,
  18. "volumes": [
  19. {
  20. "name": "dockersock",
  21. "path": "/var/run",
  22. },
  23. ] + dockerVolumes,
  24. }
  25. ],
  26. "volumes": [
  27. {
  28. "name": "dockersock",
  29. "temp": {},
  30. },
  31. ] + volumes,
  32. }