Skip to content

Envsubst

Docker Image SizeLicenseGit Repository

Substitutes the values of environment variables.

The files to be substituted are selected using glob patterns.

Params starting with ENV_ specify which variables to substitute and their value. E.g. the following substitutes the variable REEVE_VERSION with the value 1.2.3 in the file docker-compose.yml.

yaml
params:
  FILES: docker-compose.yml
  ENV_REEVE_VERSION: "1.2.3"

Params

ParamDescription
FILESSpace separated list of file patterns to be included (shell syntax) (string)
SUBSTITUTE_ALLWhether to substitute all variables in the files, even if no value was provided for them (default: false) ("true" | "false")
ENV_<name>Variables to be substituted and their corresponding values (string)