Chris Allsberry
08/29/2024, 6:04 PMBianca Hoch
08/29/2024, 6:11 PMfrom prefect import flow
from prefect.runner.storage import GitRepository
from prefect_github import GitHubCredentials
if __name__ == "__main__":
flow.from_source(
source=GitRepository(
url="<https://github.com/org/private-repo.git>",
credentials=GitHubCredentials.load("my-github-credentials-block")
),
entrypoint="my_file.py:my_flow",
).deploy(
name="private-github-deploy",
work_pool_name="my_pool",
build=False
)
Bianca Hoch
08/29/2024, 6:11 PMBianca Hoch
08/29/2024, 6:12 PMChris Allsberry
08/29/2024, 7:38 PMChris Allsberry
08/29/2024, 7:49 PMChris Allsberry
08/29/2024, 7:53 PMChris Allsberry
08/29/2024, 8:54 PMBianca Hoch
08/30/2024, 4:30 PM