Browse Source

add cloud front cache invalidation.

main
Gisle Aune 3 years ago
parent
commit
5cdec98bf0
  1. 5
      .drone.yml

5
.drone.yml

@ -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 "/*"
Loading…
Cancel
Save