https://prefect.io logo
Title
c

Chris Hansen

08/02/2022, 3:15 AM
does anyone have an example of what CI/CD should look like with prefect 2.0’s new deployments? and should i be committing deployment yamls and manifests to source control?
👀 3
r

Rob Freedy

08/02/2022, 12:59 PM
Hey Chris!! Anna has some great examples of deployments in AWS and GCP here: https://discourse.prefect.io/t/how-to-deploy-prefect-2-0-flows-to-aws/1252 https://discourse.prefect.io/t/how-to-deploy-prefect-2-0-flows-to-gcp/1251 These are great solutions for storing and referencing your deployment YAML files in AWS/GCP storage. We will have some content coming out soon related to setting up CI/CD with some best practices.
c

Chris Hansen

08/02/2022, 6:08 PM
thanks @Rob Freedy! it’s not clear what a generic deployment process would look like.
prefect deployment build
is specific to a flow, and while it does create the deployment yaml and manifest, it also pushes code to remote storage, which is effectively a code deploy, making it available to active flows, so i wouldn’t want to do that pre-merge to main. which makes me think that committing the deployment yaml manifest and yaml is not a best practice.
r

Rob Freedy

08/02/2022, 7:27 PM
We'll be releasing some generic recipes over the next couple of weeks to help clear this up: https://prefect-community.slack.com/archives/CKNSX5WG3/p1659463045886269
:thank-you: 2
🙌 2