EEx templates for shell task commands and environment values.
Templates are checked when the DAG is parsed and rendered when the task starts, so each attempt sees the current secrets and run params. A template can use:
run_id, the current run idrun_params, the params the run was triggered withparams, the task's own params, such as amap_overitemFlows, an alias forGust.Flowssecret!/1, which returns a secret's value by nametask_result!/1, which returns the saved result of a task in the same run
Example:
run: "cargo build --release --target <%= run_params["target"] %>"
env:
TOKEN: '<%= secret!("REGISTRY_TOKEN") %>'
VERSION: '<%= task_result!("read_version")["stdout"] %>'
Summary
Functions
Renders template for task.
Returns the value of the secret named name.
Returns the saved result of the task named name in the current run.
Raises if template is not a valid EEx template.
Functions
Renders template for task.
The run is only loaded when the template uses run_params.
Returns the value of the secret named name.
Raises Ecto.NoResultsError if the secret does not exist.
Returns the saved result of the task named name in the current run.
The task must have finished before this template renders, which a downstream
dependency guarantees. Shell task results are maps with the string keys
"stdout", "stderr", "exit_code" and "status", or an empty map when
the task does not have save: true.
Raises Ecto.NoResultsError if the task does not exist.
Raises if template is not a valid EEx template.