James Gatter
09/17/2024, 10:10 PMbuild
actions but no docker build or push actions, how do I prevent this message from appearing every time I want to prefect deploy
?
Would you like to build a custom Docker image for this deployment?
Marvin
09/17/2024, 10:10 PMprefect.yaml
file, you can set the "prefect-docker"
build step directly in your YAML file. This setup avoids being prompted every time you run prefect deploy
.
Here's an example of how you can define an empty build step in your prefect.yaml
to bypass the Docker build prompt:
yaml
build:
# Define any build steps here, omit docker build steps if not required
steps: []
By setting steps: []
for the build section, you are explicitly indicating that no build steps are needed. This setting tells Prefect there are no Docker build actions to perform, thus skipping the Docker image prompt.
For more details, you can refer to Prefect's documentation: Prefect YAML.
Is there something more specific you need?Kevin Grismore
09/17/2024, 10:25 PM--no-prompt
flag that'll turn off all the interactive stuffKevin Grismore
09/17/2024, 10:27 PMprefect --no-prompt deploy
James Gatter
09/17/2024, 10:30 PM--help
I guess this is the config setting PREFECT_CLI_PROMPT
? I guess I can set this to false
?James Gatter
09/17/2024, 10:32 PMKevin Grismore
09/17/2024, 10:32 PMJames Gatter
09/17/2024, 10:33 PMJames Gatter
09/17/2024, 10:33 PMprefect --no-prompt deploy
, thanks Kevin