prefect.deployments.steps.pull
Core set of steps for specifying a Prefect project pull step.
Functions
set_working_directory
directory
: the directory to set as the working directory
- a dictionary containing a
directory
key of the directory that was set
agit_clone
repository
: the URL of the repository to clonebranch
: the branch to clone; if not provided, the default branch will be usedcommit_sha
: the commit SHA to clone; if not provided, the default branch will be usedinclude_submodules
: whether to include git submodules when cloning the repositoryaccess_token
: an access token to use for cloning the repository; if not provided the repository will be cloned using the default git credentialscredentials
: a GitHubCredentials, GitLabCredentials, or BitBucketCredentials block can be used to specify the credentials to use for cloning the repository.
- a dictionary containing a
directory
key of the new directory that was created
subprocess.CalledProcessError
: if the git clone command fails for any reason
git_clone
repository
: the URL of the repository to clonebranch
: the branch to clone; if not provided, the default branch will be usedcommit_sha
: the commit SHA to clone; if not provided, the default branch will be usedinclude_submodules
: whether to include git submodules when cloning the repositoryaccess_token
: an access token to use for cloning the repository; if not provided the repository will be cloned using the default git credentialscredentials
: a GitHubCredentials, GitLabCredentials, or BitBucketCredentials block can be used to specify the credentials to use for cloning the repository.directories
: Specify directories you want to be included (uses git sparse-checkout)
- a dictionary containing a
directory
key of the new directory that was created
subprocess.CalledProcessError
: if the git clone command fails for any reason
x-token-auth
)
in your secret block. Refer to your git providers documentation for the correct authentication schema.
Clone a repository with submodules:
pull_from_remote_storage
fsspec
.
Args:
url
: the URL of the remote storage location. Should be a validfsspec
URL. Some protocols may require an additionalfsspec
dependency to be installed. Refer to thefsspec
docs for more details.**settings
: any additional settings to pass thefsspec
filesystem class.
- a dictionary containing a
directory
key of the new directory that was created
pull_with_block
block_document_name
: The name of the block document to useblock_type_slug
: The slug of the type of block to use