https://prefect.io logo
b

brian

01/24/2022, 5:01 PM
My team is using Git storage with prefect cloud. We plan to have 2 projects: 1 for dev and 1 for prod. We would like the flows in the dev project to all pull from a “dev” branch of their respective git repos, and the flows in the prod project to pull from a “prod” branch. What’s the standard pattern for doing this? My understanding is that the storage is defined when we register the flow to prefect cloud. Is this correct? If so, is there a way to parameterize the branch_name argument when we use when we initialize Git storage? Thanks in advance for any help!
k

Kevin Kho

01/24/2022, 5:10 PM
I don’t think I have a satisfying answer here for now. I think it does require a re-registration and Git storage can’t quite be parameterized like that. I think Orion addresses this funkiness. You might find more information in this Github discussion. Have you seen it?
b

brian

01/24/2022, 5:17 PM
I haven’t seen that! Thanks for sharing
Just curious, how would we accomplish this in Orion?
Or something similar, basically just want to make it so we can keep making changes to a flow in our dev environment w/o affecting the prod flow
k

Kevin Kho

01/24/2022, 5:25 PM
It would be through the DeploymentSpec. And they would be decoupled from the Flow object
3 Views