feat(ci): auto-invalidate cloudfront cache

This commit is contained in:
Barrett Ruth 2026-01-12 18:17:19 -05:00
parent d213110e30
commit 4fc8d4831d
2 changed files with 15 additions and 0 deletions

8
scripts/invalidate.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/sh
if [ -z "$AWS_CLOUDFRONT_DISTRIBUTION_ID" ]; then
echo 'No cloudfront distribution id found.'
exit 1
fi
aws cloudfront create-invalidation --distribution-id "$AWS_CLOUDFRONT_DISTRIBUTION_ID" --paths "/*"