Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Revision Tags being removed when a job is deployed via pipeline

When I run command in terminal to deploy a job with a Revision Tag to Cloud Run, it works. I use the command below to do this:

`gcloud run deploy <job> --image <image> --tag <tag> --project=<project> --region <region>` [Cloud Run Documentation]

However, when this command is done via script, couple of problems arise:

1. It is untagging all the existing Revision Tags on other previous jobs in that same service, and those existing Revision Tags were not the same as the new one I was deploying.

2. In addition, when a deploy fails in the script, Cloud Run is removing all existing Revision Tags on jobs under the service it attempted to deploy a job to.

Solved Solved
1 1 350
1 ACCEPTED SOLUTION

Hi @soojinhung,

Welcome to Google Cloud Community!

Potential Causes:

  • Script logic or flag misuse
  • Pipeline configuration and default behavior
  • Cloud Run service settings or permissions
  • Cloud Run service or command bug

Solutions:

  • Review script logic and flag usage carefully.
  • Examine pipeline configuration and adjust commands if possible.
  • Verify Cloud Run service configuration and permissions.
  • Stay updated on known issues and report bugs if suspected.

Recommendations:

  • Test scripts and pipeline thoroughly before production.
  • Monitor tag status regularly.
  • Consider tag-based traffic splitting for isolation and testing.

By following these steps, you can avoid unexpected tag removal and ensure smooth deployments.

View solution in original post

1 REPLY 1

Hi @soojinhung,

Welcome to Google Cloud Community!

Potential Causes:

  • Script logic or flag misuse
  • Pipeline configuration and default behavior
  • Cloud Run service settings or permissions
  • Cloud Run service or command bug

Solutions:

  • Review script logic and flag usage carefully.
  • Examine pipeline configuration and adjust commands if possible.
  • Verify Cloud Run service configuration and permissions.
  • Stay updated on known issues and report bugs if suspected.

Recommendations:

  • Test scripts and pipeline thoroughly before production.
  • Monitor tag status regularly.
  • Consider tag-based traffic splitting for isolation and testing.

By following these steps, you can avoid unexpected tag removal and ensure smooth deployments.