From e71af38ae5332f3de837202ffba1a57a0ff26de8 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Fri, 6 Nov 2020 12:32:57 -0500 Subject: [PATCH] added CLOUDFRONT_PATHS to specify invalidations --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42ef17f..e69107a 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,8 @@ S3_CACHE_CONTROL?=86400 S3_CMD=s3 sync ${S3_DRYRUN} ${S3_DELETE} --cache-control max-age=${S3_CACHE_CONTROL} --acl "public-read" --sse "AES256" S3_CMD_WEB=${S3_CMD} public/ s3://${WEB_BUCKET} S3_CMD_STATIC=${S3_CMD} static/ s3://${STATIC_BUCKET} -CLOUDFRONT_CMD=cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths '/*' +CLOUDFRONT_PATHS?='/*' +CLOUDFRONT_CMD=cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths ${CLOUDFRONT_PATHS} all: build