File tree 1 file changed +29
-0
lines changed
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
122
122
Yaml values to allows specifying `` null `` , `` false `` , `` true `` or numbers
123
123
easily.
124
124
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
+
125
154
### Renaming parameters
126
155
127
156
If 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