Skip to content

Environment Management

Available Environments

Environment Namespace Domain Purpose
Staging test-staging *.test.dinetogether.co.uk Testing new features
Production dine-together-production *.dinetogether.co.uk Live users

Deploying to Different Environments

Staging (Default)

# Automatic on push to main
on:
  push:
    branches: [main]

Production

# Manual trigger or production branch
on:
  push:
    branches: [production]

Environment-Specific Configuration

Different Secrets

# Staging secrets
gh secret set DATABASE_URL_STAGING

# Production secrets  
gh secret set DATABASE_URL_PRODUCTION

Environment Variables

environment:
  - API_URL=${{ github.event.inputs.environment == 'production' && 'https://api.dinetogether.co.uk' || 'https://api.test.dinetogether.co.uk' }}

Next Steps