Commit 4f169ddd authored by Samuel Schepp's avatar Samuel Schepp

enabled review apps

parent dcc57026
Pipeline #18468 passed with stages
in 7 minutes and 16 seconds
......@@ -53,4 +53,35 @@ Deploy Develop:
- echo "$VERSION_FILE" > "src/assets/version.json"
- npm run build -- --configuration=production
- node_modules/.bin/firebase deploy --token $FRBTKN --non-interactive
\ No newline at end of file
Deploy Review:
stage: deploy
artifacts:
paths:
- dist
tags:
- review
script:
- npm install
- echo "$VERSION_FILE" > "src/assets/version.json"
- npm run build -- --base-href /web-app-v3/$CI_ENVIRONMENT_SLUG/
- rm -r /home/mocainfo/review_apps/web-app-v3/$CI_ENVIRONMENT_SLUG || true
- cp -R dist /home/mocainfo/review_apps/web-app-v3/$CI_ENVIRONMENT_SLUG
- echo "$HTACCESS" > /home/mocainfo/review_apps/web-app-v3/$CI_ENVIRONMENT_SLUG/.htaccess
environment:
name: review_$CI_COMMIT_REF_NAME
url: http://mocainfo.thm.de:8090/web-app-v3/$CI_ENVIRONMENT_SLUG
on_stop: Stop Review
Stop Review:
stage: deploy
tags:
- review
variables:
GIT_STRATEGY: none
script:
- rm -r /home/mocainfo/review_apps/web-app-v3/$CI_ENVIRONMENT_SLUG || true
when: manual
environment:
name: review_$CI_COMMIT_REF_NAME
action: stop
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment