https://prefect.io logo
Title
p

Phil Maffettone

04/21/2023, 3:18 PM
Is it possible to use multiple storage blocks in a deployment? We have individual github repositories for each unit operation in a facility; however, we’d like to refactor some of the redundant code into a common repo. Is it possible to create a deployment that references 2 github storage blocks?
1
a

alex

04/21/2023, 3:48 PM
Hey @Phil Maffettone! You can’t use more than one storage block for a deployment. However, we have been working on a new experience for deploying flows called projects which allow more customization. In projects you can define
push
and
pull
actions that dictate how your code is stored during deployment and retrieved at runtime. Each action can be multiple steps, so you should be able to define multiple steps where you pull code from 2 repos prior to running a flow using the
git_clone_project
step.
p

Phil Maffettone

04/21/2023, 3:50 PM
Ah this is very helpful, thank you! I’ll give it a try!