add cloud front cache invalidation.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-03-18 19:59:40 +01:00
parent 140805d56f
commit 5cdec98bf0
+4 -1
View File
@@ -48,6 +48,9 @@ steps:
from_secret: aws_region
S3_WEBUI_BUCKET:
from_secret: s3_webui_bucket
CF_DISTRIBUTION_ID:
from_secret: cf_distribution_id
commands:
- cd __sapper__/export
- aws s3 sync . s3://$S3_WEBUI_BUCKET
- aws s3 sync --delete . s3://$S3_WEBUI_BUCKET
- aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths "/*"