File tree Expand file tree Collapse file tree 1 file changed +18
-19
lines changed
Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ stages:
3535 - deploy
3636 - tests
3737 - reports
38- - document
3938
4039sniffers:clang :
4140 stage : sniffers
@@ -225,6 +224,24 @@ stop_review:
225224 << : *ra_tags
226225 << : *ra_only
227226
227+ deploy:storybook :
228+ stage : deploy
229+ environment :
230+ url : https://${CI_ENVIRONMENT_SLUG}-${CI_PROJECT_PATH_SLUG}.${REVIEW_DOMAIN}
231+ name : review/$CI_COMMIT_REF_NAME
232+ on_stop : stop_review
233+ only :
234+ variables :
235+ - $STORYBOOK_PATH
236+ script :
237+ - cd ${BUILD_DIR}
238+ - make build-storybook
239+ - echo "- Storybook is accessible here :" && echo "${CI_ENVIRONMENT_URL}/${STORYBOOK_PATH}"
240+ << : *ra_tags
241+ << : *ra_only
242+ << : *ra_only_theme
243+ when : always
244+
228245
229246test:behat :
230247 stage : tests
@@ -328,21 +345,3 @@ report:watchdog:
328345 << : *ra_tags
329346 << : *ra_only
330347
331- document:storybook :
332- stage : document
333- environment :
334- url : https://${CI_ENVIRONMENT_SLUG}-${CI_PROJECT_PATH_SLUG}.${REVIEW_DOMAIN}
335- name : review/$CI_COMMIT_REF_NAME
336- on_stop : stop_review
337- only :
338- variables :
339- - $STORYBOOK_PATH
340- script :
341- - cd ${BUILD_DIR}
342- - make build-storybook
343- - echo "- Storybook is accessible here :" && echo "${CI_ENVIRONMENT_URL}/${STORYBOOK_PATH}"
344- dependencies :
345- - deploy:review
346- << : *ra_tags
347- << : *ra_only
348- when : always
You can’t perform that action at this time.
0 commit comments