ci: add gitlab visual review to MRs

This commit is contained in:
Rainer Killinger
2021-06-17 16:31:40 +02:00
parent 93877c9fc7
commit 0aa26020be
3 changed files with 19 additions and 3 deletions

View File

@@ -105,6 +105,7 @@ executable:
review:
stage: deploy
script:
- .gitlab/ci/enableGitlabReviewToolbar.sh www/index.html "$CI_PROJECT_ID" "$CI_OPEN_MERGE_REQUESTS"
- ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.surge.sh/
environment:
name: review/$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_NAME
@@ -112,6 +113,9 @@ review:
on_stop: stop_review
tags:
- secrecy
except:
- master
- develop
stop_review:
stage: deploy