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.
 
 
 
 
 

32 lines
618 B

  1. load("@this//:environment.star", "environment")
  2. def buildDockerFolder(
  3. dockerFile,
  4. image,
  5. tag,
  6. folder,
  7. name,
  8. ):
  9. return {
  10. "name": "build-{name}".format(
  11. name = name,
  12. ),
  13. "image": "docker:dind",
  14. "volumes": [
  15. {
  16. "name": "dockersock",
  17. "path": "/var/run",
  18. },
  19. ],
  20. "environment": environment([
  21. "local-docker-registry",
  22. ]),
  23. "commands": [
  24. "cd {folder}".format(folder=folder),
  25. "sh build-docker-folder.sh {dockerFile} {image} {tag}".format(
  26. image = image,
  27. dockerFile = dockerFile,
  28. tag = tag,
  29. ),
  30. ],
  31. }