fix(ci): route Cloud Run traffic to latest revision on admin deploy#6270
Merged
Conversation
The previous private repo deployment pinned traffic to revision 00042. Subsequent monorepo deploys create new revisions but don't override the traffic routing, leaving the old code serving. Adding revision_traffic ensures each deploy automatically routes 100% traffic to the new revision. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Greptile SummaryThis PR adds a single Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub Actions
participant GCR as Google Container Registry
participant CR as Cloud Run
GH->>GCR: Build & push image (gcr.io/.../omi-admin-dashboard)
GH->>CR: deploy-cloudrun@v2 (image + revision_traffic: LATEST=100)
CR-->>CR: Create new revision (e.g. 00043)
CR-->>CR: Route 100% traffic → latest revision
CR-->>GH: Return service URL
GH->>GH: echo deploy URL
Reviews (1): Last reviewed commit: "fix(ci): route Cloud Run traffic to late..." | Re-trigger Greptile |
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
…asedHardware#6270) ## Summary - Adds `revision_traffic: LATEST=100` to the deploy-cloudrun step in `gcp_admin.yml` - Fixes traffic being pinned to old revision (00042 from private repo deploy) while new monorepo revisions deploy but don't serve ## Context The previous private repo deployment pinned traffic to revision 00042. When the monorepo workflow deploys new revisions, `deploy-cloudrun@v2` doesn't override the existing traffic routing — so the old code keeps serving. This one-line fix ensures each deploy automatically routes 100% traffic to the newly deployed revision. ## Test plan - [ ] Merge this PR — triggers `gcp_admin.yml` workflow - [ ] Verify workflow completes successfully - [ ] Verify `admin.omi.me` serves from the latest revision (check `/dashboard/fair-use` exists) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
revision_traffic: LATEST=100to the deploy-cloudrun step ingcp_admin.ymlContext
The previous private repo deployment pinned traffic to revision 00042. When the monorepo workflow deploys new revisions,
deploy-cloudrun@v2doesn't override the existing traffic routing — so the old code keeps serving. This one-line fix ensures each deploy automatically routes 100% traffic to the newly deployed revision.Test plan
gcp_admin.ymlworkflowadmin.omi.meserves from the latest revision (check/dashboard/fair-useexists)🤖 Generated with Claude Code