docs
GitHub CI/CD Deployment
main.yml

GitHub Workflow File: main.yml

In .github/workflows/main.yml, you'll find our CI/CD script for deploying to staging and production with CDK.

How It Works:

  1. Trigger: Runs on pushes to the staging branch and when a pull request is merged from staging into main.
  2. Testing: Uses Docker Compose to run tests.
  3. AWS Setup: Configures AWS credentials via OIDC and sets environment variables from GitHub Secrets.
  4. Deployment: Deploys to the staging or production AWS account.
  5. Database Migrations: Establishes an AWS SSM session for database access and applies Prisma migrations.
  6. Cleanup: Terminates the SSM session after migrations.

Simple and automated—the workflow takes care of the rest!