Skip to content

Commit 8bbda39

Browse files
committed
example fixes
1 parent dfc9904 commit 8bbda39

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

projects.yaml.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,27 +156,27 @@ projects:
156156
variables: # optional
157157
- key: TEST1 # mandatory
158158
value: XXX1 # mandatory
159-
variable_type: env_var # mandatory, env_var or file
159+
variable_type: env_var # env_var by default or file
160160
protected: True # False by default
161161
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
163163
environment_scope: '*' # * by default
164164
- key: TEST1 # mandatory, we can have the same var in different scopes
165165
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'
168168
- key: TEST_TRUE
169169
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
170170
variable_type: env_var
171-
environment_scope: 'prod' # mandatory
171+
environment_scope: 'prod'
172172
- key: TEST_FALSE
173173
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
174174
variable_type: env_var
175175
environment_scope: # you can use list of scopes here, it will be expanded to several vars in gitlab
176176
- 'prod'
177177
- '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-*'
180180
key_values: # another more compact format to set multiple key-values for the same scope, type of var
181181
TEST1: XXX1
182182
TEST2: XXX2

0 commit comments

Comments
 (0)