Commit 4b3e872
fix(ci): pin scaffold-e2e runtime image to the project's resolved cli version
The "Scaffold with repo dist" job built the runtime base image with a hardcoded
`--build-arg OS_CLI_VERSION=latest`. During an RC window this skews protocols and
fails the docker boot (pre-existing failure on `main`):
✗ package 'e2e-app' targets protocol ^16 (engines.protocol) but this runtime
is protocol 15.0.0.
The scaffolder pins `@objectstack/*` to `^<repo version>` (16.0.0-rc.1), so the
generated project's `os build` emits an artifact targeting protocol 16. But the
`latest` dist-tag still points at the last STABLE cli (15.1.1, protocol 15), so a
base image built from `latest` runs `os start` at protocol 15 and rejects the
protocol-16 artifact → container never becomes healthy.
Derive OS_CLI_VERSION from the version the generated project actually resolved
(`e2e-app/node_modules/@objectstack/cli`) instead of hardcoding `latest`. This
keeps the runtime image in lockstep with the artifact's protocol in every case:
the repo RC, the `latest` fallback the install step already handles, or a
published stable.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2b5d725 commit 4b3e872
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
165 | 177 | | |
| 178 | + | |
| 179 | + | |
166 | 180 | | |
167 | | - | |
| 181 | + | |
168 | 182 | | |
169 | 183 | | |
170 | 184 | | |
| |||
0 commit comments