We're successfully running Prefect with our flows ...
# ask-community
e
We're successfully running Prefect with our flows locally, and in the process of deploying it to production and setting up CI/CD pipelines. Locally we want to use local flow code storage for ease of use while developing. Deployed, we would like to either use Github or Azure Blob Storage for flow code storage. It seems like a common use case to have this variance across environment. Does anyone have experience with this in the prefect config? We would appreciate some pointers on best practices here, and are also curious to hear about other people's CI/CD deployment flow. prefect.yaml (locally)
Copy code
# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect.deployments.steps.set_working_directory:
    directory: /opt/prefect/flows
prefect.yaml (deployed)
Copy code
# push section allows you to manage if and how this project is uploaded to remote locations
push:
- prefect_azure.deployments.steps.push_to_azure_blob_storage:
    id: push_code
    requires: prefect-azure>=0.2.8
    container: my-prefect-azure-container
    folder: my-folder

# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect_azure.deployments.steps.pull_from_azure_blob_storage:
    id: pull_code
    requires: prefect-azure>=0.2.8
    container: '{{ push_code.container }}'
    folder: '{{ push_code.folder }}'