Files
k8s-game-2048/scripts/setup-environments.sh
Greg 9fdcc9574a 🎯 Update all workflows to test canonical Knative domains
 Improvements:
- Prioritize canonical domain testing over custom domains
- Add fallback testing for both canonical and custom domains
- More reliable smoke tests using direct Knative service URLs
- Separate performance testing for canonical vs custom domains
- Enhanced auto-promotion pipeline with canonical domain validation

🧪 Testing Strategy:
- Primary: Test canonical domains (game-2048-*.*.wa.darknex.us)
- Secondary: Verify custom domains work via redirects
- Fallback: Test both domains in smoke tests for reliability

🔗 Canonical Domains:
- Dev: game-2048-dev.game-2048-dev.dev.wa.darknex.us
- Staging: game-2048-staging.game-2048-staging.staging.wa.darknex.us
- Prod: game-2048-prod.game-2048-prod.wa.darknex.us

This ensures tests are more reliable since canonical domains are always accessible
while custom domains may have redirect complexity.
2025-06-30 23:04:01 -07:00

25 lines
952 B
Bash

#!/bin/bash
# Setup GitHub Environments for Protection Rules
# This script documents the manual steps needed in GitHub UI
echo "🔧 Setting up GitHub Environments for Auto-Promotion Pipeline"
echo ""
echo "📋 Manual Steps Required in GitHub Repository Settings:"
echo ""
echo "1. Go to Settings → Environments"
echo "2. Create 'production-approval' environment"
echo "3. Add required reviewers (yourself)"
echo "4. Set deployment protection rules"
echo ""
echo "Environment Configuration:"
echo "- Environment Name: production-approval"
echo "- Required Reviewers: Repository admins"
echo "- Wait Timer: 0 minutes (immediate on approval)"
echo "- Deployment Branches: main branch only"
echo ""
echo "This ensures production deployments require manual approval"
echo "while dev → staging promotion happens automatically on successful tests."
echo ""
echo "🔗 Navigate to: https://github.com/YOUR_USERNAME/k8s-game-2048/settings/environments"