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
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -156,27 +156,27 @@ projects:
156
156
variables: # optional
157
157
- key: TEST1 # mandatory
158
158
value: XXX1 # mandatory
159
-
variable_type: env_var #mandatory, env_var or file
159
+
variable_type: env_var # env_var by default or file
160
160
protected: True # False by default
161
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
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
-
variable_type: env_var #mandatory, env_var or file
167
-
environment_scope: 'staging'# mandatory
166
+
variable_type: env_var # env_var by default or file
167
+
environment_scope: 'staging'
168
168
- key: TEST_TRUE
169
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
170
170
variable_type: env_var
171
-
environment_scope: 'prod'# mandatory
171
+
environment_scope: 'prod'
172
172
- key: TEST_FALSE
173
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
174
174
variable_type: env_var
175
175
environment_scope: # you can use list of scopes here, it will be expanded to several vars in gitlab
176
176
- 'prod'
177
177
- 'staging'
178
-
- variable_type: env_var# mandatory, env_var or file
179
-
environment_scope: 'dev/my-*'# mandatory
178
+
- variable_type: env_var
179
+
environment_scope: 'dev/my-*'
180
180
key_values: # another more compact format to set multiple key-values for the same scope, type of var
0 commit comments