Rasmus Simmelkjær Berntsen
06/02/2026, 4:52 AMMarvin
06/02/2026, 4:52 AMMarvin
06/02/2026, 4:55 AM--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:
yaml
build: []
or
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.