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: README.md
+46-44Lines changed: 46 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,9 +91,11 @@ jobs:
91
91
`\\n`) unless quoted. Any leading or trailing whitespace is trimmed unless
92
92
values are quoted.
93
93
94
-
env_vars: |-
95
-
FRUIT=apple
96
-
SENTENCE=" this will retain leading and trailing spaces "
94
+
```yaml
95
+
env_vars: |-
96
+
FRUIT=apple
97
+
SENTENCE=" this will retain leading and trailing spaces "
98
+
```
97
99
98
100
This value will only be set if the input is a non-empty value. If a
99
101
non-empty value is given, the field values will be overwritten (not
@@ -102,24 +104,6 @@ jobs:
102
104
If both `env_vars` and `env_vars_file` are specified, the keys in
103
105
`env_vars`will take precedence over the keys in `env_vars_file`.
104
106
105
-
- <a name="__input_env_vars_file"></a><a href="#user-content-__input_env_vars_file"><code>env_vars_file</code></a>: _(Optional)_ Path to a file on disk, relative to the workspace, that defines
106
-
environment variables. The file can be newline-separated KEY=VALUE pairs,
107
-
JSON, or YAML format. If both `env_vars` and `env_vars_file` are
108
-
specified, the keys in env_vars will take precedence over the keys in
When specified as KEY=VALUE pairs, the same escaping rules apply as
115
-
described in `env_vars`. You do not have to escape YAML or JSON.
116
-
117
-
If both `env_vars` and `env_vars_file` are specified, the keys in
118
-
`env_vars`will take precedence over the keys in `env_vars_file`.
119
-
120
-
**⚠️ DEPRECATION NOTICE:** This input is deprecated and will be removed in
121
-
the next major version release.
122
-
123
107
- <a name="__input_env_vars_update_strategy"></a><a href="#user-content-__input_env_vars_update_strategy"><code>env_vars_update_strategy</code></a>: _(Required, default: `merge`)_ Controls how the environment variables are set on the Cloud Run service.
124
108
If set to "merge", then the environment variables are _merged_ with any
125
109
upstream values. If set to "overwrite", then all environment variables on
@@ -135,13 +119,15 @@ jobs:
135
119
volumes. Keys starting with a forward slash '/' are mount paths. All other
136
120
keys correspond to environment variables:
137
121
138
-
with:
139
-
secrets: |-
140
-
# As an environment variable:
141
-
KEY1=secret-key-1:latest
122
+
```yaml
123
+
with:
124
+
secrets: |-
125
+
# As an environment variable:
126
+
KEY1=secret-key-1:latest
142
127
143
-
# As a volume mount:
144
-
/secrets/api/key=secret-key-2:latest
128
+
# As a volume mount:
129
+
/secrets/api/key=secret-key-2:latest
130
+
```
145
131
146
132
This value will only be set if the input is a non-empty value. If a
147
133
non-empty value is given, the field values will be overwritten (not
@@ -159,9 +145,11 @@ jobs:
159
145
unless quoted. Any leading or trailing whitespace is trimmed unless values
160
146
are quoted.
161
147
162
-
labels: |-
163
-
labela=my-label
164
-
labelb=my-other-label
148
+
```yaml
149
+
labels: |-
150
+
labela=my-label
151
+
labelb=my-other-label
152
+
```
165
153
166
154
This value will only be set if the input is a non-empty value. If a
167
155
non-empty value is given, the field values will be overwritten (not
@@ -191,14 +179,18 @@ jobs:
191
179
`gcloud run deploy`. For Cloud Run jobs, this command will be `gcloud jobs
192
180
deploy`.
193
181
194
-
with:
195
-
flags: '--add-cloudsql-instances=...'
182
+
```yaml
183
+
with:
184
+
flags: '--add-cloudsql-instances=...'
185
+
```
196
186
197
187
Flags that include other flags must quote the _entire_ outer flag value. For
flags](https://cloud.google.com/sdk/gcloud/reference/run/deploy#FLAGS) for
@@ -216,21 +208,27 @@ jobs:
216
208
217
209
- <a name="__input_revision_traffic"></a><a href="#user-content-__input_revision_traffic"><code>revision_traffic</code></a>: _(Optional)_ Comma-separated list of revision traffic assignments.
218
210
219
-
with:
220
-
revision_traffic: 'my-revision=10'# percentage
211
+
```yaml
212
+
with:
213
+
revision_traffic: 'my-revision=10' # percentage
214
+
```
221
215
222
216
To update traffic to the latest revision, use the special tag "LATEST":
223
217
224
-
with:
225
-
revision_traffic: 'LATEST=100'
218
+
```yaml
219
+
with:
220
+
revision_traffic: 'LATEST=100'
221
+
```
226
222
227
223
This is mutually-exclusive with `tag_traffic`. This option only applies
228
224
to services.
229
225
230
226
- <a name="__input_tag_traffic"></a><a href="#user-content-__input_tag_traffic"><code>tag_traffic</code></a>: _(Optional)_ Comma-separated list of tag traffic assignments.
231
227
232
-
with:
233
-
tag_traffic: 'my-tag=10'# percentage
228
+
```yaml
229
+
with:
230
+
tag_traffic: 'my-tag=10' # percentage
231
+
```
234
232
235
233
This is mutually-exclusive with `revision_traffic`. This option only
236
234
applies to services.
@@ -240,14 +238,18 @@ jobs:
240
238
features that are not exposed via this GitHub Action. This flag only
241
239
applies when `revision_traffic` or `tag_traffic` is set.
242
240
243
-
with:
244
-
traffic_flags: '--set-tags=...'
241
+
```yaml
242
+
with:
243
+
traffic_flags: '--set-tags=...'
244
+
```
245
245
246
246
Flags that include other flags must quote the _entire_ outer flag value. For
0 commit comments