Hey, how are people dealing with Prefect 2.0 CI/CD...
# ask-community
r
Hey, how are people dealing with Prefect 2.0 CI/CD and agents with deployments/schedules/params, are there any good github action examples floating around?
1
s
Hi there 🙂 I’d encourage you to check out some of our ci/cd examples in the prefect-recipes repo. If you don’t find what you’re looking for, feel free to create a request to see that specific example.
👍 1
🙏 1
a
you may also check out this repo - the readme includes a blog post and a video demo showing the setup of everything via GitHub Actions
r
Thanks @Anna Geller, I was trying to get a good prefct project folder structure together with multiple flows and multiple schedules per flow together with an agent deployment per flow which requires cascading matrices or calling gh action workflows from within workflows
👍 1
So perhaps a scheduling file within each flow folder and a deploy per schedule with one agent per flow.
a
did you check this repo? it's all there in the .github
r
I did thanks and watched the vid, assume your running the scheduling bash afterwards to set schedules rather than part of the githib action. I am just slightly confused how best to approach the number of agents I should be using, associating them to flows and setting the schedules per flow all as part of the build...I am trying to envisage the cd of a repo with 50+ flows and the maintenance of it all
👍 1
a
the number of agents I should be using
you need just one -- all flow run infra gets deployed as serverless containers running separate from that agent, agent only creates the ECS tasks