Skip to main content

CI/CD Setup

B4M supports two CI/CD options for automated deployments.

Comparison

FeatureGitHub ActionsSeed
Recommended forNew deploymentsExisting Seed users
Setup complexityMediumLow
CostFree (public repos), included minutes (private)Paid subscription
Multi-account AWSBuilt-in supportSupported
Preview environmentsPR-based previewsSupported
ConfigurationYAML workflowsWeb UI

Choose Your Path

For most new deployments, GitHub Actions provides:

  • Native GitHub integration
  • Multi-account AWS deployment (dev/prod)
  • Automatic PR preview environments
  • No additional service costs

Set up GitHub Actions →

Seed

If you're already using Seed or prefer a managed CI/CD service:

  • Simpler initial setup
  • Web-based configuration
  • Built-in deployment monitoring

Set up Seed →

Branching Strategy

Both options use this branching strategy:

BranchStageEnvironment
prodproductionProduction
maindevStaging/Development
pr-*previewPR previews

Required GitHub Variables

Regardless of CI/CD choice, set these in your fork's repository settings:

SERVER_DOMAIN=yourdomain.com
PROD_SERVER_DOMAIN=yourdomain.com
STAGING_SERVER_DOMAIN=staging.yourdomain.com
PREVIEW_SERVER_DOMAIN=preview.yourdomain.com
HOSTED_ZONE=yourdomain.com
PROD_HOSTED_ZONE=yourdomain.com

Next Steps

After CI/CD setup:

  1. Configure Secrets - SST secrets
  2. Deploy - First deployment