mirror of
https://github.com/dmuth/diceware.git
synced 2024-11-21 08:26:29 -05:00
Added CloudFront invalidation to deployment script.
This commit is contained in:
parent
3447a4acda
commit
dda4262bce
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ set -e
|
||||||
|
|
||||||
pushd $(dirname $0) > /dev/null
|
pushd $(dirname $0) > /dev/null
|
||||||
|
|
||||||
|
echo "# Syncing files to AWS S3 bucket..."
|
||||||
aws s3 sync . s3://diceware.dmuth.org/ --exclude ".*" --exclude "node_modules/*" --delete
|
aws s3 sync . s3://diceware.dmuth.org/ --exclude ".*" --exclude "node_modules/*" --delete
|
||||||
|
|
||||||
|
echo "# Invalidating CloudFront cache..."
|
||||||
|
aws cloudfront create-invalidation --distribution-id E2TUL4ST85ZH5Y --paths "/*"
|
||||||
|
|
||||||
|
echo "# Done!"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue