-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
TL;DR
When using no_traffic: true once, it's hard to set the traffic
Docs for --no-traffic state:
After a deployment with this flag the LATEST revision will not receive traffic on future deployments
This can be worked around by adding another step that does:
run: gcloud run services update-traffic ${{service}} --region ${{region}} --to-latestThe current situation is suboptimal because:
- the user needs to duplicate the service and region parameters (or factor them out in variables) that are also used by the main deploy step
- it's hard to discover because the deploy-cloudrun page doesn't mention this issue of using
--no-traffic
Detailed design
Expose a to_latest value that if true will cause the action to call update-traffic with the --to-latest flag, similarly how presence of the revision_traffic and tag_traffic values already do
Additional information
No response
davideme, itretiy, koba1108, karupanerura, andrew-gamurs and 3 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request