From 4d231da8852d630d27864f5018aafac598d332a4 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Tue, 7 Jan 2020 13:25:15 +0100 Subject: [PATCH] automatically run invalidation during deployment --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c375267..a64c594 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,14 +18,17 @@ jobs: if [ "${CIRCLE_BRANCH}" == "master" ]; then export SITEURL="https://www.offen.dev" export BUCKET="offen-dev-production" + export DISTRIBUTION="E2UP8XHLFOC3QC" export ROBOTS_FILE="robots.txt.production" else export SITEURL="https://staging.offen.dev" export BUCKET="offen-dev-staging" + export DISTRIBUTION="E13I20LK8ASYFH" export ROBOTS_FILE="robots.txt.staging" fi make build aws s3 sync --delete ./output/. s3://$BUCKET + aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*" workflows: version: 2