Skip to content
Snippets Groups Projects
Commit 74cc9e5c authored by Jan Bernoth's avatar Jan Bernoth
Browse files

created a new pages task

parent f87270f5
No related branches found
No related tags found
No related merge requests found
Pipeline #99988 failed
...@@ -104,8 +104,8 @@ build_angular_app: ...@@ -104,8 +104,8 @@ build_angular_app:
tar cfz - dist/$ANGULAR_STAGE dist/doc | ssh -i /root/.ssh/id_rsa gitup-deploy@$server; tar cfz - dist/$ANGULAR_STAGE dist/doc | ssh -i /root/.ssh/id_rsa gitup-deploy@$server;
done done
- ng build --configuration production --base-href / --output-path=public - ng build --configuration production --base-href / --output-path=public
- mkdir -p public/doc # - mkdir -p public/doc
- cp -R dist/doc public/doc # - cp -R dist/doc public/doc
artifacts: artifacts:
paths: paths:
- public - public
...@@ -115,7 +115,6 @@ build_angular_app: ...@@ -115,7 +115,6 @@ build_angular_app:
# except: # except:
# refs: # refs:
# - tags # - tags
deploy-development: deploy-development:
extends: .deploy extends: .deploy
stage: deploy-development stage: deploy-development
...@@ -133,3 +132,12 @@ deploy-production: ...@@ -133,3 +132,12 @@ deploy-production:
ANGULAR_STAGE: "prod" ANGULAR_STAGE: "prod"
only: only:
- tags - tags
pages:
stage: deploy-production
image: trion/ng-cli:13.2.3
script:
- npm link @angular/cli@13.2.3
- ng build --configuration production --base-href /dashboard/ --output-path=public
only:
- 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