Skip to content
Snippets Groups Projects
Commit c3ad8e02 authored by bhill6@wisc.edu's avatar bhill6@wisc.edu
Browse files

Update .gitlab-ci.yml, added manual deployment to test-enroll-app-frontend S3 bucket

parent 2296b77c
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ image: docker.doit.wisc.edu/registrar/angular-cli-builder:1.2.0
variables:
S3_BUCKET_NAME: dev-enroll-app-frontend
TEST_S3_BUCKET_NAME: test-enroll-app-frontend
DEV_CFDIST_ID: E2LLRLV3LNB0E3
stages:
......@@ -26,4 +27,16 @@ deploy:
- aws cloudfront create-invalidation --distribution-id $DEV_CFDIST_ID --paths '/*'
only:
- master@adi-ia/course-search-enroll-fe
when: manual
deploytest:
stage: deploy
script:
- npm install
- 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 '/*'
only:
- master@adi-ia/course-search-enroll-fe
when: manual
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment