From 33bdcbdb3c1c45b2bb67e9857360c347372e6ced Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 16 Dec 2017 20:51:32 -0500 Subject: [PATCH] add cloudfront cache invalidation to ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f72d7c1..c12a327 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ # .gitlab-ci.yml image: publysher/hugo - production: type: deploy before_script: @@ -11,6 +10,7 @@ production: script: - hugo - aws s3 sync public/ s3://$AWS_BUCKET + - aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*" artifacts: paths: - public