Hi everyone! I have question for prefect community...
# ask-community
t
Hi everyone! I have question for prefect community. I have multiple deployment in prefect which uses same infrastructure and they all use repo image which is defined in my image section of infrastructure. Let say deployed image is 2.0 so all deployment use 2.0 I want deployment to have a feature of specifying which image tag to use and if not specified then use default. How can I acgieve this?
b
Hi Tushar! If you'd like to override the default image used on a per-deployment basis, I believe using job variables will help you out here. Job variables can be defined in your prefect.yaml or the .deploy() method. Let's say you have a default image that you've defined in your work pool's base template. You could have a flow's deployment override the work pool's default image by setting the name and tag of your image in the job variables for that particular deployment. Here's some more resources that may help you out: • Additional configuration with `.deploy` • Creating work pool-based deployments with prefect.yaml