Skip to content

devlanes is in beta and not ready for production use.Report an issue

global_env in devlanes.yaml

A top-level key of devlanes.yaml.

Type: mapping of names to strings, booleans, numbers or expressions.

Variables for every service and task of the lane, above devlanes’ own variables (PORT, DEVLANES_*) and below each unit’s env and the profile’s env. Use it for values many units share, such as a database URL built from ${{ infra.postgres.port }}. An entry without a value, such as one that reads a container a profile with infra: false left stopped, fails every service and task of the lane, so a value only some services need belongs in their env. devlanes exec leaves such an entry out and names it. Never set PORT here: it would replace every service’s own port.

devlanes.yaml
global_env:
API_URL: ${{ services.api.url }}