prefect.deployments.steps.utility

Utility project steps that are useful for managing a project’s deployment lifecycle.

Steps within this module can be used within a build, push, or pull deployment action.

Example: Use the run_shell_script setp to retrieve the short Git commit hash of the current repository and use it as a Docker image tag:

build:
    - prefect.deployments.steps.run_shell_script:
        id: get-commit-hash
        script: git rev-parse --short HEAD
        stream_output: false
    - prefect_docker.deployments.steps.build_docker_image:
        requires: prefect-docker
        image_name: my-image
        image_tag: "{{ get-commit-hash.stdout }}"
        dockerfile: auto

Classes

RunShellScriptResult

The result of a run_shell_script step.