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:
......@@ -7,30 +7,31 @@ variables:
stages:
- build
# - test
- test
- deploy
build:
stage: build
script:
- npm install
- ng build --prod --base-href /degree-planner
- ng lint
- ng build --prod --base-href /degree-planner --deploy-url /degree-planner/
#test:
# stage: test
# script:
# - npm install
# - ng build --prod
test:
stage: test
script:
- npm install
- ng build --prod
- npm test
- npm lint
deploy:
stage: deploy
script:
- 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 configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id $DEV_CFDIST_ID --paths '/*'
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