git-build.yaml 712 B

1234567891011121314151617181920212223242526272829
  1. # Kestra Docker Git Build Template
  2. # ---
  3. #
  4. # Build a Docker image from a Git repository.
  5. #
  6. id: docker-git-build
  7. namespace: # your-namespace
  8. tasks:
  9. - id: git
  10. type: io.kestra.core.tasks.flows.WorkingDirectory
  11. tasks:
  12. - id: clone
  13. type: io.kestra.plugin.git.Clone
  14. url: https://your-git-repo-url
  15. branch: your-branch
  16. - id: build
  17. type: io.kestra.plugin.docker.Build
  18. dockerfile: "src/Dockerfile"
  19. tags:
  20. - your-username/your-repository:your-tag
  21. push: true
  22. credentials:
  23. registry: https://index.docker.io/v1/
  24. username: "{{ secret('YOUR_USERNAME') }}"
  25. password: "{{ secret('YOUR_PASSWORD') }}"