From e367e556baa146dc190be430549079c9d4c1913e Mon Sep 17 00:00:00 2001 From: "bhill6@wisc.edu" <bhill6@wisc.edu> Date: Thu, 16 May 2019 14:56:03 +0000 Subject: [PATCH] Update .gitlab-ci.yml -- fixing test vs prod deployment tasks --- .gitlab-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d895fc9..eedea47 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,11 +39,19 @@ deploy: - aws cloudfront create-invalidation --distribution-id $DEV_CFDIST_ID --paths '/*' only: - master@adi-ia/course-search-enroll-fe - + +deploy_test: + stage: deploy + script: + - aws s3 sync --acl public-read --sse --delete s3://$S3_BUCKET_NAME s3://$TEST_S3_BUCKET_NAME + only: + - master@adi-ia/course-search-enroll-fe + when: manual + deploy_prod: stage: deploy script: - - aws s3 sync --acl public-read --sse --delete s3://$TEST_S3_BUCKET_NAME s3://PROD_S3_BUCKET_NAME + - aws s3 sync --acl public-read --sse --delete s3://$TEST_S3_BUCKET_NAME s3://$PROD_S3_BUCKET_NAME only: - master@adi-ia/course-search-enroll-fe when: manual -- GitLab