MarcoM
05/17/2024, 10:30 AMMarvin
05/17/2024, 10:31 AMprefect.deployments.steps.git_clone
step. The git_clone
step is designed to clone content from a single repository. You might need to use multiple git_clone
steps, one for each repository you wish to clone, or write a custom cloning step that orchestrates the cloning process of multiple repositories.
Since I've not found explicit instructions in the Prefect documentation or examples that suggest directly how to clone multiple repositories in a single step, I would recommend considering the approach of using multiple steps or a custom clone function for your deployment.
Please refer to the following links for more information and to examine the context of these excerpts:
- Prefect Bitbucket Repository
- Prefect Gitlab Repositories
- Prefect CI/CD Guide
If required, you can look into writing a custom step by referring to the Prefect documentation on how to create custom deployment steps, for which I've not included references here.Nate
05/17/2024, 3:50 PMpull
section is just a yaml list of steps, so you're free to clone success repos just by putting two in a row like this
pull:
- prefect.deployments.steps.git_clone:
repository: foo
- prefect.deployments.steps.git_clone:
repository: bar