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

added deploy-url arg to CI ng build

parent d7e11d4f
No related branches found
No related tags found
No related merge requests found
image: docker.doit.wisc.edu/registrar/angular-cli-builder:1.2.0 image: docker.doit.wisc.edu/registrar/angular-cli-builder:1.1.0
variables: variables:
...@@ -7,30 +7,31 @@ variables: ...@@ -7,30 +7,31 @@ variables:
stages: stages:
- build - build
# - test - test
- deploy - deploy
build: build:
stage: build stage: build
script: script:
- npm install - npm install
- ng build --prod --base-href /degree-planner - ng build --prod --base-href /degree-planner --deploy-url /degree-planner/
- ng lint
#test: test:
# stage: test stage: test
# script: script:
# - npm install - npm install
# - ng build --prod - ng build --prod
- npm test
- npm lint
deploy: deploy:
stage: deploy stage: deploy
script: script:
- npm install - npm install
- ng build --prod --base-href /degree-planner - 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://$S3_BUCKET_NAME - aws s3 sync --acl public-read --sse --delete dist/course-search-enroll-fe s3://$S3_BUCKET_NAME
- aws configure set preview.cloudfront true - aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id $DEV_CFDIST_ID --paths '/*' - aws cloudfront create-invalidation --distribution-id $DEV_CFDIST_ID --paths '/*'
only: only:
- master@adi-ia/course-search-enroll-fe - master
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