Commit 4908878
Fit staging Cloud Run tag within the 46-char combined limit
Cloud Run rejects deploys where traffic tag + service name exceed 46
characters (they form the tag URL's DNS label). The Stage 1 service
rename to policyengine-api-staging (24 chars) left 22 for the tag,
but the staging tag template stage3-staging-<run#>-<sha7> is at least
24 — every staging deploy failed at gcloud. Shorten the staging tag to
stg-<run#>-<sha7> (combined <=45 even at 9-digit run numbers; prod
keeps stage3-prod-*, which exit gates key on) and add a fail-fast
combined-length guard to deploy validation.
Fixes #3729
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7110f23 commit 4908878
3 files changed
Lines changed: 12 additions & 1 deletion
File tree
- .github
- scripts
- workflows
- changelog.d
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
8 | 17 | | |
9 | 18 | | |
10 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments