File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,35 @@ As environment variables can only be strings, they are also parsed as inline
122122Yaml values to allows specifying `` null `` , `` false `` , `` true `` or numbers
123123easily.
124124
125+ #### Using same names for parameters and environment variables
126+
127+ As an alternative, you can set environment variables with the same uppercased
128+ name of your dist parameters and use `` "env-map": "auto" `` to get an auto mapping.
129+ `` my_first_param `` parameter will map `` MY_FIRST_PARAM `` environment variable.
130+
131+ Given this `` parameters.yml.dist `` file:
132+
133+ ``` yaml
134+ # parameters.yml.dist
135+
136+ parameters :
137+ my_first_param : " some value"
138+ my_second_param : " another value"
139+
140+ ```
141+
142+ Following settings will produce the same result as previous example:
143+
144+ ``` json
145+ {
146+ "extra" : {
147+ "incenteev-parameters" : {
148+ "env-map" : " auto"
149+ }
150+ }
151+ }
152+ ```
153+
125154### Renaming parameters
126155
127156If you are renaming a parameter, the new key will be set according to the usual
You can’t perform that action at this time.
0 commit comments