Skip to content

Attach CDN Worker/Lambda archives to stable releases - #8325

Open
lisa-0831 wants to merge 3 commits into
graphql-hive:mainfrom
lisa-0831:fix/7762-cdn-deployment
Open

Attach CDN Worker/Lambda archives to stable releases#8325
lisa-0831 wants to merge 3 commits into
graphql-hive:mainfrom
lisa-0831:fix/7762-cdn-deployment

Conversation

@lisa-0831

Copy link
Copy Markdown

Background

Self-hosting the Hive CDN currently requires building cdn-worker from source. This change publishes standalone Cloudflare Worker and AWS Lambda archives on stable Hive GitHub Releases and documents how to deploy them. Related to #7762.

Description

Affects CI release packaging and cdn-worker docs only. No CLI, client/agent, API, or runtime service code changes.
.github/workflows/build-and-dockerize.yaml

  • On stable hive@* tags (uploadJavaScriptArtifacts + publishLatest, linux/amd64 only): copy dist/index.worker.mjs / dist/index.lambda.mjs to index.mjs, zip them with vimtor/action-zip (recursive: true so the zip root is index.mjs), upload as workflow artifacts, then attach hive-cdn-cloudflare-worker.zip and hive-cdn-aws-lambda.zip to the matching GitHub Release via gh release upload --clobber.
    packages/services/cdn-worker/README.md
  • Document downloading those release assets.
  • Cloudflare: minimal wrangler.toml (Analytics Engine bindings), secrets via wrangler secret put, deploy + /_health check; note that a Workers KV HIVE_DATA binding is not required by the current Worker artifact.
  • AWS Lambda: upload the zip as-is; runtime Node.js 22.x, handler index.handler, required AWS_S3_* env vars (including the existing AWS_S3_ACCESSS_KEY_SECRET spelling), Function URL notes.
    .changeset/tidy-cdns-deploy.md
  • Patch changeset for hive describing the release archives and deployment docs.

Checklist

  • Data protection
  • Communication security
  • System configuration
  • File management
  • Access control

lisa-0831 and others added 3 commits August 5, 2026 16:04
Publish Cloudflare Worker and AWS Lambda archives with stable Hive releases and document how to configure both providers.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop the unused HIVE_DATA KV requirement from self-host instructions, and package release zips with the existing action-zip path so runners do not need a system zip binary.

Co-authored-by: Cursor <cursoragent@cursor.com>
@n1ru4l n1ru4l mentioned this pull request Aug 10, 2026
@n1ru4l
n1ru4l requested review from dotansimha and n1ru4l August 10, 2026 15:56

@n1ru4l n1ru4l left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some CI checks are failing, can you please resolve the linting issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants