Search code examples
google-cloud-platformgcloudgoogle-cloud-run

gcloud add tag to specific Cloud Run revision


I'm wondering how to add a tag to a specific, already existing Cloud Run revision which already has a tag.

For example:

  1. I have a running revision tagged with the word "green".
  2. I have another running revision with no tag, that is the latest revision.
  3. I switch the tag of the "green" build to "blue".

Is the flow above possible with the gcloud run services update command? Or some other command? It seems like gcloud run services update only affects the latest revision.


Solution

  • gcloud run services update-traffic has flags for updating traffic tags.