The following examples show how to create Prefect deployments. These examples are sourced from the PrefectHQ/examples repository.

ExampleDescription
deploy_docker_existing_image.pyShows how to deploy a flow using an existing Docker image that contains your flow code.
deploy_docker_in_docker.pyDemonstrates deploying a flow from inside a Docker container using the container’s own image.
deploy_many.pyAn example of discovering and deploying multiple flows from a directory with customizable patterns.
source_docker.pyShows how to deploy a flow in a Prefect-built Docker image with options for registry pushing and platform specification.
source_github.pyDemonstrates deploying a flow directly from a GitHub repository with authentication and scheduling.