|
17 | 17 | # hop). Stable releases also move each registry's `:latest` |
18 | 18 | # tag; prereleases only push the version-specific tag. |
19 | 19 | # |
20 | | -# The computerd binary is shipped two ways: |
21 | | -# - inside the @cloudflare/computer npm tarball at dist/bin/ |
22 | | -# computerd-linux-x64, so consumers installing the package get it for |
23 | | -# free; and |
24 | | -# - as a single-layer container image, mirrored to both |
25 | | -# ghcr.io/cloudflare/computer-computerd-linux-x64 and |
26 | | -# registry.cloudflare.com/library/computer-computerd-linux-x64. The |
27 | | -# example Dockerfiles pin the GHCR coordinate (anonymous pulls, |
28 | | -# no Cloudflare-account dependency); the CF copy is kept for |
29 | | -# consumers that prefer to stay on the in-platform registry. |
| 20 | +# The computerd binary ships as a single-layer container image, |
| 21 | +# mirrored to both ghcr.io/cloudflare/computer-computerd-linux-x64 |
| 22 | +# and registry.cloudflare.com/library/computer-computerd-linux-x64. |
| 23 | +# The example Dockerfiles pin the GHCR coordinate (anonymous pulls, |
| 24 | +# no Cloudflare-account dependency); the CF copy is kept for |
| 25 | +# consumers that prefer to stay on the in-platform registry. It is |
| 26 | +# deliberately NOT bundled inside the @cloudflare/computer npm |
| 27 | +# tarball — nothing in the package resolves it at runtime, and |
| 28 | +# every consumer copies it out of the image via `COPY --from`, so |
| 29 | +# bundling only bloated the tarball by ~120 MB. |
30 | 30 | # |
31 | 31 | # npm packages use trusted publishing (OIDC); no NPM_TOKEN is |
32 | 32 | # needed, only the workflow's `id-token: write` permission plus a |
@@ -117,18 +117,6 @@ jobs: |
117 | 117 | - name: Build computerd binary |
118 | 118 | run: npm run build:bin --workspace @cloudflare/computerd |
119 | 119 |
|
120 | | - # Short-term bundling: ship the linux-x64 computerd binary inside |
121 | | - # @cloudflare/computer under dist/bin/ — not registered as a |
122 | | - # "bin" entry, so npm install won't try to symlink it on |
123 | | - # non-linux hosts. Docker workflows reach in and copy it out |
124 | | - # explicitly. Replace with a proper platform-package install |
125 | | - # once we have more than one target. |
126 | | - - name: Stage binary into @cloudflare/computer |
127 | | - run: | |
128 | | - mkdir -p packages/computer/dist/bin |
129 | | - cp artifacts/computerd/computerd-linux-x64 packages/computer/dist/bin/computerd-linux-x64 |
130 | | - chmod +x packages/computer/dist/bin/computerd-linux-x64 |
131 | | -
|
132 | 120 | - name: Sync versions |
133 | 121 | run: node script/set-versions.mjs "${RELEASE_TAG}" |
134 | 122 |
|
|
0 commit comments