<@ULVA73B9P>, in the deployment pull steps, can i ...
# ask-marvin
m
@Marvin, in the deployment pull steps, can i pull 2 repos with the step prefect.deployments.steps.git_clone? if yes, how?
m
It seems that there's no straightforward way to clone multiple repositories using a single
prefect.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.
n
the entire
pull
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
Copy code
pull:
  - prefect.deployments.steps.git_clone:
      repository: foo
  - prefect.deployments.steps.git_clone:
      repository: bar