Russell Brooks

02/28/2023, 3:52 AM
I want to have a stage in my .gitlab-ci.yml run every script with a Deployment.build_from_flow and apply. I did this in Prefect run with register and used wildcard for path. But in Prefect 2 I am finding it better to build and apply deployments through scripts. But I would also need that step automated in the ci pipeline. How can I do this? As a side note it seems you have to be in the scripts directory when you do this otherwise you get the entire directory structure below saved to your storage block as well…

Austin Weisgrau

02/28/2023, 5:32 AM
The dataflowsops repository has a working example of this
See the deploy step

Russell Brooks

03/01/2023, 12:03 AM
We don’t use GitHub. We have gitlab and it does not have GitHub actions. It uses .gitlab-ci.yml instead. So I need to know how to have a better discovery of all flows that should be deployed (the new way to ‘register’) Also we don’t use cloud we use server. So thanks for the link but still looking for a solution other than writing a clever bash script. As context this was a need under Prefect 1 and the Prefect team later made it easy with a nice CLI solution