You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects.yaml.example
+3-15Lines changed: 3 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -157,37 +157,25 @@ projects:
157
157
- key: TEST1 # mandatory
158
158
value: XXX1 # mandatory
159
159
variable_type: env_var # mandatory, env_var or file
160
-
protected: True #mandatory
161
-
masked: False #mandatory
160
+
protected: True #False by default
161
+
masked: False #False by default
162
162
#raw: True # optional, False by default, "Expand variable reference" switcher, in API reference it is called "raw" https://docs.gitlab.com/ee/api/project_level_variables.html
163
-
environment_scope: '*'#mandatory
163
+
environment_scope: '*'#* by default
164
164
- key: TEST1 # mandatory, we can have the same var in different scopes
165
165
value: XXX1 # mandatory
166
166
variable_type: env_var # mandatory, env_var or file
167
-
protected: True # mandatory
168
-
masked: False # mandatory
169
-
#raw: True # optional, False by default, "Expand variable reference" switcher, in API reference it is called "raw" https://docs.gitlab.com/ee/api/project_level_variables.html
170
167
environment_scope: 'staging'# mandatory
171
168
- key: TEST_TRUE
172
169
value: "true"# do not put yaml boolean in value as GitLab vars are not boolean compatible, it will save them as "true" and "false" strings, put the same here
173
170
variable_type: env_var
174
-
protected: True
175
-
masked: False
176
-
#raw: True # optional, False by default, "Expand variable reference" switcher, in API reference it is called "raw" https://docs.gitlab.com/ee/api/project_level_variables.html
177
171
environment_scope: 'prod'# mandatory
178
172
- key: TEST_FALSE
179
173
value: "false"# do not put yaml boolean in value as GitLab vars are not boolean compatible, it will save them as "true" and "false" strings, put the same here
180
174
variable_type: env_var
181
-
protected: True
182
-
masked: False
183
-
#raw: True # optional, False by default, "Expand variable reference" switcher, in API reference it is called "raw" https://docs.gitlab.com/ee/api/project_level_variables.html
184
175
environment_scope: # you can use list of scopes here, it will be expanded to several vars in gitlab
185
176
- 'prod'
186
177
- 'staging'
187
178
- variable_type: env_var # mandatory, env_var or file
188
-
protected: True # mandatory
189
-
masked: False # mandatory
190
-
#raw: True # optional, False by default, "Expand variable reference" switcher, in API reference it is called "raw" https://docs.gitlab.com/ee/api/project_level_variables.html
191
179
environment_scope: 'dev/my-*'# mandatory
192
180
key_values: # another more compact format to set multiple key-values for the same scope, type of var
0 commit comments