Hey everyone, I'm new to prefect and I'm wondering...
# ask-community
c
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
Hey Court! They certainly can be used together. What have you set up so far?
c
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
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
I guess I skipped some parts of the documentation when I was reading it. Thanks a ton @Bianca Hoch
prefect spin 1