<@ULVA73B9P> When running 'prefect deploy', how ca...
# ask-marvin
r
@Marvin When running 'prefect deploy', how can I skip build without having to modify the yaml file?
m
thought for 133.9 seconds
There isn’t currently a CLI flag like
--skip-build
for
prefect deploy
. So if you want to skip the build step, the supported mechanism is to set
build
to empty in
prefect.yaml
, for example:
Copy code
yaml
build: []
or
Copy code
yaml
build: null
I verified
prefect deploy --help
, and there’s no skip-build option exposed there. A few related notes: -
prefect deploy
only runs build steps if the
build
section is populated - same idea applies to
push
steps - if you need different behavior without editing the main yaml manually each time, your options are basically: - maintain a second
prefect.yaml
- script a temporary edit before deploy - define deployments in Python and use
.deploy(...)
instead, depending on your workflow CLI reference: - prefect deploy docs If you want, I can suggest a clean workaround for conditionally skipping build in CI/CD without hand-editing the yaml each run.