Hi all,
I’m trying to figure out what’s the best setup for us using prefect given our unique setup with gitlab. We have 3 environments that gitlab performs ci/cd on and a standalone server for developers (playground).
The dev ops life cycle is below:
1. Develop and test in playground env
2. Push to gitlab under a feature branch
3. Deploy through pipeline in gitlab
a. Stg
b. QA
c. Prod
4. Merge to main branch in gitlab
PS. We’re not using containers.
When we deploy to stg, qa, or prod using gitlab, it moves the python files/flows to those environments. If we’re using prefect and I’m deploying a flow from my local developer environment, because I don’t have a storage block it looks for the python file in the same folder path as my developer environment where I deployed the flow. Wondering if there’s a ingenious way for me to specify the default location depending on the environment the flow or work process is located that way the dev ops life cycle will be this instead:
1. Develop and test in playground env
2. Push to gitlab under a feature branch
3. Deploy through pipeline in gitlab
a. Stg
i. deploy flows that change with build steps for STG
b. QA
i. deploy flows that change with build steps for QA
c. Prod
i. deploy flows that change with build steps for Prod
4. Merge to main branch in gitlab
Or if there’s a better/cleaner solution that I’m not thinking about please let me know.