[X] I used the GitHub search to find a similar request and didn't find it.
[X] I searched the Prefect documentation for this feature.
Prefect Version
2.x
Describe the current behavior
The prefect deploy command can create deployments defined in a prefect.yaml in two ways:
By referring to one or more deployments by name: prefect deploy -n flow-a/default -n flow-b/default
With the --all flag: prefect deploy --all
Describe the proposed behavior
When deploying via something like GitHub actions, users often want to deploy only flows in files that have changed. Being able to specify a glob-style pattern on matching files would make this workflow more convenient. One possible implementation might be to create a -m / --match argument that matches deployments based on a file pattern.
Example Use
Suppose you have something like the following prefect.yaml file:
This could perhaps also be -f / --file or similar, though -f is occupied by --flow. There are probably better implementations, but the main point is deploying flows already declared in prefect.yaml based on glob-style paths.
First check
Prefect Version
2.x
Describe the current behavior
The
prefect deploy
command can create deployments defined in aprefect.yaml
in two ways:prefect deploy -n flow-a/default -n flow-b/default
--all
flag:prefect deploy --all
Describe the proposed behavior
When deploying via something like GitHub actions, users often want to deploy only flows in files that have changed. Being able to specify a glob-style pattern on matching files would make this workflow more convenient. One possible implementation might be to create a
-m
/--match
argument that matches deployments based on a file pattern.Example Use
Suppose you have something like the following
prefect.yaml
file:Running this command:
Should result in deploying the first two flows.
Additional context
This could perhaps also be
-f
/--file
or similar, though-f
is occupied by--flow
. There are probably better implementations, but the main point is deploying flows already declared inprefect.yaml
based on glob-style paths.