Skip to content

Commit dfc9904

Browse files
committed
doc for defaults in var
1 parent f19f18a commit dfc9904

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

projects.yaml.example

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -157,37 +157,25 @@ projects:
157157
- key: TEST1 # mandatory
158158
value: XXX1 # mandatory
159159
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
162162
#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
164164
- key: TEST1 # mandatory, we can have the same var in different scopes
165165
value: XXX1 # mandatory
166166
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
170167
environment_scope: 'staging' # mandatory
171168
- key: TEST_TRUE
172169
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
173170
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
177171
environment_scope: 'prod' # mandatory
178172
- key: TEST_FALSE
179173
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
180174
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
184175
environment_scope: # you can use list of scopes here, it will be expanded to several vars in gitlab
185176
- 'prod'
186177
- 'staging'
187178
- 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
191179
environment_scope: 'dev/my-*' # mandatory
192180
key_values: # another more compact format to set multiple key-values for the same scope, type of var
193181
TEST1: XXX1

0 commit comments

Comments
 (0)