Skip to content

Load Env File

Docker Image SizeLicenseGit Repository

Loads runtime variables from .env files.

The files are selected using glob patterns.

Params starting with ENV_ specify which variables to load and how they should be named. E.g. the following loads the variable REEVE_VERSION from the file .env and stores the value in the runtime variable IMAGE_VERSION.

yaml
params:
  FILES: .env
  ENV_REEVE_VERSION: IMAGE_VERSION

Params

ParamDescription
FILESSpace separated list of file patterns to be included (shell syntax) (default: **/*.env) (string)
LOAD_ALLWhether to load all variables from the env files (default: false) ("true" | "false")
ENV_<name>Variables to be loaded from the files and their corresponding runtime variable names to be used in Reeve (string)