FerryDocs

Variables in a build

Your build gets the environment variables of the service, with some exceptions.

Edit on GitHub
Env groupslinkedServiceits variablesPORT, FERRY_…from FerryBuildContainerwhen the app runs

The build gets the variables of the linked env groups and of the service.

1 / 3

The build gets the of the service and of its . See Environment & env groups.

Two examples of use: an install step reads the token of a private registry, and a build puts a public API URL into the code.

What the build does not get

Not in the buildThe log says
The when the app runs (PORT, FERRY_…)Nothing
A ${{…}} that Ferry cannot replace, for example to a service with no deploy==> Warning: not available at build time (unresolved references): …
A reserved name, or a name that is not a correct variable name==> Not available at build time (reserved or invalid names): …

How to use a variable

The variables come as . See Secrets in a build.

On this page