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
Always update traffic if tag_traffic or revision_traffic is given (#535)
Closes#533
This could potentially be a breaking change for anyone using a step that
had an `image` or `source` with a `tag_traffic` or `revision_traffic`.
Previously this would not re-deploy, but now it does.
- <a name="suffix"></a><a href="#user-content-suffix"><code>suffix</code></a>: _(Optional)_ String suffix to append to the revision name. Revision names always start
84
-
with the service name automatically. For example, specifying 'v1' for a
85
-
service named 'helloworld', would lead to a revision named
86
-
'helloworld-v1'.
84
+
with the service name automatically. For example, specifying `v1` for a
85
+
service named `helloworld`, would lead to a revision named
86
+
`helloworld-v1`. This option is only applies to services.
87
87
88
88
- <a name="env_vars"></a><a href="#user-content-env_vars"><code>env_vars</code></a>: _(Optional)_ List of environment variables that should be set in the environment.
89
89
These are comma-separated or newline-separated `KEY=VALUE`. Keys or values
@@ -179,7 +179,8 @@ jobs:
179
179
180
180
Setting this to `true` will skip adding these special labels.
181
181
182
-
- <a name="tag"></a><a href="#user-content-tag"><code>tag</code></a>: _(Optional)_ Traffic tag to assign to the newly-created revision.
182
+
- <a name="tag"></a><a href="#user-content-tag"><code>tag</code></a>: _(Optional)_ Traffic tag to assign to the newly-created revision. This option is only
183
+
applies to services.
183
184
184
185
- <a name="timeout"></a><a href="#user-content-timeout"><code>timeout</code></a>: _(Optional)_ Maximum request execution time, specified as a duration like "10m5s" for
185
186
ten minutes and 5 seconds.
@@ -202,11 +203,12 @@ jobs:
202
203
203
204
Please note, this GitHub Action does not parse or validate the flags. You
204
205
are responsible for making sure the flags are available on the gcloud
205
-
version and subcommand. When using `tag_traffic` or `revision_traffic`,
206
-
the subcommand is `gcloud run services update-traffic`. For all other
207
-
values, the subcommand is `gcloud run deploy`.
206
+
version and subcommand. The provided flags will be appended to the
207
+
`deploy`command. When `revision_traffic` or `tag_traffic` are set, the
208
+
flags will also be appended to the subsequent `update-traffic` command.
208
209
209
-
- <a name="no_traffic"></a><a href="#user-content-no_traffic"><code>no_traffic</code></a>: _(Optional, default: `false`)_ If true, the newly deployed revision will not receive traffic.
210
+
- <a name="no_traffic"></a><a href="#user-content-no_traffic"><code>no_traffic</code></a>: _(Optional, default: `false`)_ If true, the newly deployed revision will not receive traffic. This option
211
+
is only applies to services.
210
212
211
213
- <a name="revision_traffic"></a><a href="#user-content-revision_traffic"><code>revision_traffic</code></a>: _(Optional)_ Comma-separated list of revision traffic assignments.
212
214
@@ -218,14 +220,16 @@ jobs:
218
220
with:
219
221
revision_traffic: 'LATEST=100'
220
222
221
-
This is mutually-exclusive with `tag_traffic`.
223
+
This is mutually-exclusive with `tag_traffic`. This option is only applies
224
+
to services.
222
225
223
226
- <a name="tag_traffic"></a><a href="#user-content-tag_traffic"><code>tag_traffic</code></a>: _(Optional)_ Comma-separated list of tag traffic assignments.
224
227
225
228
with:
226
229
tag_traffic: 'my-tag=10'# percentage
227
230
228
-
This is mutually-exclusive with `revision_traffic`.
231
+
This is mutually-exclusive with `revision_traffic`. This option is only
232
+
applies to services.
229
233
230
234
- <a name="project_id"></a><a href="#user-content-project_id"><code>project_id</code></a>: _(Optional)_ ID of the Google Cloud project in which to deploy the service.
0 commit comments