Examples
Deployment Examples
The following examples show how to create Prefect deployments. These examples are sourced from the PrefectHQ/examples repository.
Example | Description |
---|---|
deploy_docker_existing_image.py | Shows how to deploy a flow using an existing Docker image that contains your flow code. |
deploy_docker_in_docker.py | Demonstrates deploying a flow from inside a Docker container using the container’s own image. |
deploy_many.py | An example of discovering and deploying multiple flows from a directory with customizable patterns. |
source_docker.py | Shows how to deploy a flow in a Prefect-built Docker image with options for registry pushing and platform specification. |
source_github.py | Demonstrates deploying a flow directly from a GitHub repository with authentication and scheduling. |
Was this page helpful?