Skip to content

Task

The Hera runtime supports build and pipeline task actions to run workflows. A Task is created by calling run() on the Workflow; task parameters are passed through that call and may vary by action.

Parameters (Shared)

Name Type Description
action str Task action. One of: build, pipeline. Required.
node_selector list[dict] Node selector.
volumes list[dict] List of volumes.
resources dict Resource limits/requests.
affinity dict Affinity configuration.
tolerations list[dict] Tolerations.
envs list[dict] Environment variables.
secrets list[str] List of secret names.
profile str Profile template.

Task Actions

Supported actions:

  • build — build the pipeline definition
  • pipeline — execute the built pipeline