Skip to content

Deploy the built documentation to a Cloudflare R2 bucket - #2128

Open
ericof wants to merge 1 commit into
6.0from
issue-2127
Open

ericof wants to merge 1 commit into
6.0from
issue-2127

Conversation

@ericof

@ericof ericof commented Nov 30, 2026

Copy link
Copy Markdown
Member

Refs #2127

After the existing rsync deploy, the build_deploy job now syncs _build/html to the 6-docs-plone-org Cloudflare R2 bucket with plone/r2-deploy v1.0.0.

  • Dual deploy. The rsync step stays first and unchanged: the current server remains the live 6.docs.plone.org until the DNS cutover. Removing rsync and the DEPLOY_* settings is a later change.
  • Settings. The step reads R2_BUCKET and R2_ACCOUNT_ID (variables) and R2_ACCESS_KEY_ID / R2_SECRET_ACCESS_KEY (secrets) from the docs.plone.org environment; they are already set, with a key limited to that bucket.
  • Concurrency. The job joins the fixed group r2-6-docs-plone-org (no cancelling), so two syncs never overlap and delete each other's files. The group is a literal because environment variables are not available to job-level concurrency.
  • No stubs or excludes are needed. Storybook, built into _build/html, is uploaded with the rest.

The workflow runs only on pushes to 6.0, so the R2 secrets are never exposed to pull requests. The first real sync happens on the merge; the action writes its upload and delete counts to the job summary.

After the rsync deploy, sync _build/html to the 6-docs-plone-org R2
bucket with plone/r2-deploy. Both deploys run until the DNS cutover;
the server stays the live site until then.

The job joins a fixed concurrency group so two syncs to the bucket
never overlap. The group is a literal because R2_BUCKET is an
environment variable, which job-level concurrency cannot read.

Refs #2127

This branch has not been deployed

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

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant