Cloning Repos
Cloning source code in DevZero.
The repos
block in a Recipe is used to define which repositories should be cloned when the workspace starts. This process respects the GitHub application permissions configured in DevZero.
To clone one or multiple repos:
version: "3"
build:
steps:
- type: apt-get
packages: ["git"] # Ensures git is installed before cloning
- type: git-clone
url: https://github.com/my-org/my-repo # Cloning a private or public repository
- type: git-clone
url: https://github.com/vercel/next.js # Cloning multiple repositories