Commit ae27d10
committed
ci: simplify review apps to match historical 2020 pattern
The previous commit reinvented review apps with a bunch of new machinery
(PREVIEW_BASE_DOMAIN, stop_review job, auto_stop_in, on_stop wiring).
The existing infrastructure already has the `review` namespace, the
ingress, and the Cloudflare wildcard for *.pgai.green — review apps just
need to deploy `docs-<slug>` into the `review` namespace and the rest is
handled outside this repo.
This commit replaces the over-engineered version with the same minimal
shape that lived here before commit 43d434c (Oct 2020, "fix: remove
review CI"), adapted to the current TAG_VERSION/TAG_LATEST naming and
with the correct external URL (https://docs-<slug>.pgai.green).
Also drops the per-branch overwrite of the staging deployment by scoping
`build_and_push_staging` / `deploy_staging` to the `staging` branch
only — that bug is the actual reason previews stopped working: every dev
push was clobbering the shared staging Deployment instead of getting an
isolated review env.
https://claude.ai/code/session_015AC273dXNKXd8gG5QpC1521 parent 1ca4bf0 commit ae27d10
3 files changed
Lines changed: 23 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
129 | 125 | | |
130 | 126 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 127 | + | |
| 128 | + | |
135 | 129 | | |
136 | 130 | | |
137 | 131 | | |
138 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
139 | 136 | | |
140 | 137 | | |
141 | 138 | | |
| |||
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
147 | | - | |
148 | | - | |
| 144 | + | |
| 145 | + | |
149 | 146 | | |
150 | 147 | | |
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
154 | 151 | | |
155 | | - | |
156 | | - | |
157 | 152 | | |
158 | 153 | | |
159 | 154 | | |
| |||
180 | 175 | | |
181 | 176 | | |
182 | 177 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments