https://prefect.io logo
m

Mark McDonald

08/04/2023, 2:00 PM
I'm using prefect-docker for my deployments. I'm noticing that for each deployment I have defined in my prefect.yaml, the deployment does its own docker build and push to my image repo. It seems like the image should only need to be built once and pushed once for all my deployments, no? Is this the expected behavior?
j

Jamie Zieziula

08/04/2023, 2:33 PM
Hi Mark! Do you mind sharing some of your prefect.yaml? namely i’m wondering where you are defining your build/push steps? at the
root
level of the file or individually at the deployment level
m

Mark McDonald

08/04/2023, 2:34 PM
I'm defining the build/push steps at the root level
I will share the prefect.yaml shortly
prefect.yaml
to deploy the flows, I've been using this command:
Copy code
prefect --no-prompt deploy --all
j

Jamie Zieziula

08/04/2023, 7:16 PM
ah ok, it seems like this is expected behavior - we’ve opened a ticket here to track!
m

Mark McDonald

08/04/2023, 7:32 PM
thanks, Jamie!
P 1