Skip to content

Separate S3 buckets for raw data and HTML exports#41

Merged
marcarl merged 2 commits into
mainfrom
separate-r2-buckets
Jan 7, 2026
Merged

Separate S3 buckets for raw data and HTML exports#41
marcarl merged 2 commits into
mainfrom
separate-r2-buckets

Conversation

@marcarl

@marcarl marcarl commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Splits Cloudflare R2 bucket configuration into two distinct buckets for better organization and access control:

  • CLOUDFLARE_R2_RAWDATA_BUCKET_NAME (sfs-json): Stores source JSON files from the API
  • CLOUDFLARE_R2_HTMLEXPORT_BUCKET_NAME (web): Stores generated HTML exports for public access

Changes

  • ✅ Updated fetch-sfs-workflow.yml to upload JSON to rawdata bucket
  • ✅ Updated html-export-workflow.yml to download from rawdata and upload HTML to export bucket
  • ✅ Updated github-pages-workflow.yml to download JSON from rawdata bucket
  • ✅ Changed bucket names from secrets to repository variables for better transparency

Benefits

  • Better organization with separate buckets for different data types
  • Allows different retention policies and access controls per bucket
  • More transparent configuration using variables instead of secrets for non-sensitive data

Required Setup

Before merging, add these two repository variables:

gh variable set CLOUDFLARE_R2_RAWDATA_BUCKET_NAME --body "sfs-json"
gh variable set CLOUDFLARE_R2_HTMLEXPORT_BUCKET_NAME --body "web"

Or via GitHub UI: Settings → Secrets and variables → Actions → Variables tab

🤖 Generated with Claude Code

Split Cloudflare R2 bucket configuration into two distinct buckets:
- CLOUDFLARE_R2_RAWDATA_BUCKET_NAME (sfs-json): Stores source JSON files
- CLOUDFLARE_R2_HTMLEXPORT_BUCKET_NAME (web): Stores generated HTML exports

Changes:
- Updated fetch-sfs-workflow.yml to upload JSON to rawdata bucket
- Updated html-export-workflow.yml to download from rawdata and upload HTML to export bucket
- Updated github-pages-workflow.yml to download JSON from rawdata bucket
- Changed bucket names from secrets to repository variables for better transparency

This separation improves organization and allows different retention/access policies per bucket type.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@marcarl marcarl changed the title Separate R2 buckets for raw data and HTML exports Separate S3 buckets for raw data and HTML exports Jan 7, 2026
@marcarl marcarl merged commit 35832eb into main Jan 7, 2026
5 checks passed
@marcarl marcarl deleted the separate-r2-buckets branch January 7, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant