Skip to content

Commit 71f40e0

Browse files
author
David Ferlay
committed
Adding moving storybook to deploy ci step and adding theme check
1 parent 740168b commit 71f40e0

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.gitlab-ci.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ stages:
3535
- deploy
3636
- tests
3737
- reports
38-
- document
3938

4039
sniffers:clang:
4140
stage: sniffers
@@ -225,6 +224,26 @@ 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+
dependencies:
241+
- deploy:review
242+
<<: *ra_tags
243+
<<: *ra_only
244+
<<: *ra_only_theme
245+
when: always
246+
228247

229248
test:behat:
230249
stage: tests
@@ -328,21 +347,3 @@ report:watchdog:
328347
<<: *ra_tags
329348
<<: *ra_only
330349

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

0 commit comments

Comments
 (0)