I’m deploying my app in the following way:
gcloud run deploy ${{ secrets.SERVICE_NAME }} \
--source $(pwd) \
--region us-central1 \
--allow-unauthenticated \
--platform managed
And it works fine.
However, I manually changed my service to serve the traffic 100%; now, every time that I deploy, the latest deployment doesn’t get promoted, and it still keeps serving the old one.
To revert this behavior, what do I do, pass a flag or something else?
>Solution :
Yes, try setting this:
gcloud run services update-traffic SERVICE --to-latest
Take a look at Send all traffic to the latest revision