From e60854b18e9066b31d57636da752848b907ea87d Mon Sep 17 00:00:00 2001
From: "bhill6@wisc.edu" <bhill6@wisc.edu>
Date: Mon, 1 Apr 2019 16:02:52 +0000
Subject: [PATCH] Update .gitlab-ci.yml -- added cloudfront distribution ID for
 test tier in deploy_test step

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2483e02..5aa87ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,6 +5,7 @@ variables:
   S3_BUCKET_NAME: dev-enroll-app-frontend
   TEST_S3_BUCKET_NAME: test-enroll-app-frontend
   DEV_CFDIST_ID: E2LLRLV3LNB0E3
+  TEST_CFDIST_ID: E2YFQBS58TTJRA
 
 stages:
   - build
@@ -37,7 +38,7 @@ deploy_test:
     - ng build --prod --base-href /degree-planner --deploy-url /degree-planner/
     - aws s3 sync --acl public-read --sse --delete dist/course-search-enroll-fe s3://$TEST_S3_BUCKET_NAME
     - aws configure set preview.cloudfront true
-    - aws cloudfront create-invalidation --distribution-id $TEST_S3_BUCKET_NAME --paths '/*'
+    - aws cloudfront create-invalidation --distribution-id $TEST_CFDIST_ID --paths '/*'
   only:
     - master@adi-ia/course-search-enroll-fe
   when: manual
\ No newline at end of file
-- 
GitLab