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.
 
 
 
 
 

22 lines
540 B

  1. load("@this//:environment.star", "environment")
  2. def build(name):
  3. return {
  4. "name": "build-{name}".format(name=name),
  5. "image": "docker:dind",
  6. "volumes": [
  7. {
  8. "name": "dockersock",
  9. "path": "/var/run",
  10. },
  11. ],
  12. "environment": environment([
  13. "local-docker-registry",
  14. ]),
  15. "commands": [
  16. "cd {name}".format(name=name),
  17. "docker build . -t $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
  18. "docker push $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
  19. ],
  20. }