Hey everyone,
I'm new to prefect and I'm wondering if Github and Serverless Push Work Pools can be used together. I haven't found anything in the documentation saying that they could be used together. I'm not sure if I'm doing it correctly
b
Bianca Hoch
02/11/2025, 2:16 PM
Hey Court! They certainly can be used together. What have you set up so far?
c
Court
02/11/2025, 2:40 PM
I have Github, Prefect, Cloud Run all setup. When I push my code to GitHub, GitHub action builds a docker container that pushes it to Google Cloud Run. That works. But it leaves out Prefect deployment and worker pool. I would then have to return to my python code to do a
prefect deploy
I would like for it all to be in sync with each other. Is there a way or better way to deploy everything? @Bianca Hoch
b
Bianca Hoch
02/11/2025, 3:11 PM
Sweet, that sounds good so far. Have you taken a look at this guide for CI/CD? It uses GitHub Actions to deploy a flow whenever a code change is pushed to a branch. It builds/pushes a docker image, and then deploys the flow to Prefect in one go. Since you mentioned
prefect deploy
, I'd recommend checking out the
prefect.yaml
tab under the "Write a GitHub workflow" section. That'll be where you specify your deployment and work pool
c
Court
02/11/2025, 4:40 PM
I guess I skipped some parts of the documentation when I was reading it. Thanks a ton @Bianca Hoch
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.