Jimmy Le

05/24/2023, 6:17 PM
Hey peeps, I’m having some trouble wrapping my head around the new Projects and Workers. I can see how it would be useful with my current deployment with GitHub Storage and Docker infrastructure blocks. I can be debugging an issue and if I forget to push the latest commit or latest Docker image I run into the same errors. When I run `prefect deployment build`… I’d love for it to build and push the Docker image, sync the script to GitHub, and apply the deployment in Prefect. Is there a sample tutorial for something like this available?


05/24/2023, 6:19 PM
Hey @Jimmy Le! One of the features of projects is handling Docker images builds and pushing images for you automatically. If you want more detail on how to achieve that you can check out this tutorial:

Jamie Zieziula

05/24/2023, 6:20 PM
exactly!! instead of
prefect deployment build..
you can run
prefect deploy --name deployment_name
and that will handle the build & deploy of your images like Alex mentioned

Jimmy Le

05/25/2023, 3:09 PM
Got it working! Had to create a new docker work pool and new docker worker and add my GitHub access token to the `prefect.yaml`… this simplifies things greatly! Glad I took the time to learn this.
🙌 1