Skip to content

ci(staging): invalidate CloudFront on deploy - #439

Merged
erinxocon merged 1 commit into
masterfrom
ci/staging-cloudfront-invalidation
Nov 3, 2026
Merged

erinxocon merged 1 commit into
masterfrom
ci/staging-cloudfront-invalidation

Conversation

@erinxocon

@erinxocon erinxocon commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Prepare staging for caching HTML at the edge. Upload hashed assets first, sync everything else, invalidate paths with stable URLs and wait, then delete old assets, so live pages never reference a missing asset.

Related to https://github.com/system76/infrastructure/pull/578

@erinxocon
erinxocon force-pushed the ci/staging-cloudfront-invalidation branch 2 times, most recently from a179ef7 to f68bdf5 Compare November 3, 2026 06:15
Prepare staging for caching HTML at the edge. Upload hashed assets first,
sync everything else, invalidate paths with stable URLs and wait, then
delete old assets, so live pages never reference a missing asset.

Requires CloudFront invalidation permissions for the staging deploy
credentials.
@erinxocon
erinxocon force-pushed the ci/staging-cloudfront-invalidation branch from f68bdf5 to 3e18d37 Compare November 3, 2026 06:38
@erinxocon
erinxocon merged commit 5168a39 into master Nov 3, 2026
1 check passed
@erinxocon
erinxocon deleted the ci/staging-cloudfront-invalidation branch November 3, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants