dagu icon indicating copy to clipboard operation
dagu copied to clipboard

Step Specific Env

Open yohamta0 opened this issue 4 years ago • 0 comments

By specifying environment variables on a per-step basis, the maintainability of workflows can be greatly improved. For instance, the following YAML snippet sets the FOO environment variable to "BAR" for task1:

env:
  - FOO: "BAR"
steps:
  - name: task1
    env:
      - FOO: "BAR-TASK1"
    command: echo $FOO # "BAR-TASK1" will be printed in the log

yohamta0 avatar Aug 03 '22 21:08 yohamta0