DO-1743: add comprehensive PWA deployment workflow π #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
π― Added a comprehensive Progressive Web Application deployment workflow that transforms how we deploy PWAs to AWS infrastructure
β’ π¦ Multi-environment deployments - Support for staging, production, and preview environments with proper isolation
β’ πΏ Branch-based preview environments - Automatic preview deployments for pull requests with unique URLs
β’ π Dual cache strategies - Smart caching with immutable assets (1 year) and revalidated HTML (1 hour)
β’ βοΈ CloudFront integration - Automatic cache invalidation with configurable paths for instant updates
β’ π·οΈ Multi-brand deployment support - Parallel deployment matrix for multiple brands in a single workflow
β’ π± Node.js 16-22 compatibility - Flexible package manager support (Yarn/npm) with proper dependency caching
β’ π‘οΈ Manual production gates - Environment-based deployment protection with approval workflows
β’ π§Ή Artifact optimization - Intelligent cleanup and storage optimization
πͺ Key Features That Make This Awesome
Smart Caching Strategy π§
The workflow implements a dual cache approach:
Preview Magic β¨
Every PR automatically gets its own preview environment:
pr-123orbranch-feature-nameprefixed deploymentsMulti-Brand Matrix Deployment π
Deploy multiple brands in parallel with a single configuration:
Enterprise-Grade AWS Integration π’
π¦ Usage Examples
Basic Production Deployment:
PR Preview Environment:
π§ What's Under the Hood
4-Stage Pipeline Architecture:
Input Validation & Safety:
Comprehensive Logging:
This workflow replaces ad-hoc deployment scripts and provides a standardized, battle-tested approach to PWA deployments across all our projects! π
π€ Generated with Claude Code
Co-Authored-By: Claude [email protected]