Environment Variables

1 minute read

Define environment variables directly within workflow definitions or as plain-text values. Variables set at the workflow level propagate to all steps in all jobs.

  • Use the env keyword to define variables.

  • Variables in the env map cannot reference other variables in the same map.

  • Variable specificity determines precedence. A variable defined in a step overrides one with the same name at the workflow level.

For example, if SERVER: production is defined at the workflow level and SERVER: development is defined in a step, the step uses development during execution.

Additional references: