Is there a way to remove a tag(through CLI) that I've set on a cloud run revision when doing a deployment? I can see how to do it through the UI, but I need to include this in my deployment pipeline so it should be through the CLI
My use case is the following:
--no-traffic
flag and --tag
option in order to make the version accessibleThe reason I want to remove those is that all versions that contain tag are kept accessible which is a problem for me since I'm also using the min-instances
option.
Edit: I was using incorrectly labels instead of tags here.
The --remove-tags
can be used with the update-traffic
command. Since every tag can be assigned only to a single run revision this is the correct way to remove a tag from a revision.
** Always using the same tag for deployment preview/testing also works in the above use case since using the same tag on the latest revision effectively removes this tag from older revisions.