<@ULVA73B9P> is it possible to deploy two separate...
# ask-marvin
t
@Marvin is it possible to deploy two separate prefect.yaml files in a single
prefect deploy
command in prefect 2? the build steps are setup to use the commit hash, so I'd like to skip the build step on the second prefect.yaml and use the same image from the initial one if possible
m
In Prefect 2, you cannot deploy two separate
prefect.yaml
files in a single
prefect deploy
command. However, you can manage multiple deployments within a single
prefect.yaml
file by declaring multiple deployment configurations. This allows you to control and deploy different configurations for the same flow from a single file. To skip the build step for a particular deployment while reusing the image from the initial one, you can manually adjust the deployment configurations in your
prefect.yaml
file. Ensure that the image is specified in a way that it can be reused, possibly by setting it as a variable or block reference. For more details, you can refer to the Prefect deployment guide.