Hey peeps, I’m having some trouble wrapping my hea...
# ask-community
j
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?
a
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: https://docs.prefect.io/latest/tutorial/projects/#dockerized-deployment
j
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
j
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