File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ include:
1212 changes :
1313 - ui/**/*
1414
15- default :
15+ .ui_cache : &ui_cache
1616 image : node:lts-alpine
1717 cache : &cache
1818 key : " $CI_COMMIT_REF_SLUG"
@@ -22,6 +22,7 @@ default:
2222
2323check-code-style :
2424 << : *only_ui
25+ << : *ui_cache
2526 stage : test
2627 before_script :
2728 - apk add --no-cache curl
@@ -41,6 +42,7 @@ semgrep-sast:
4142 stage : test
4243 image : returntocorp/semgrep
4344 << : *only_ui
45+ << : *ui_cache
4446 variables :
4547 # See more at semgrep.dev/explore.
4648 SEMGREP_RULES : >-
Original file line number Diff line number Diff line change 1515 rules :
1616 - if : $CI_COMMIT_TAG =~ /^ui\/[0-9.]+$/
1717
18+ .ui_cache : &ui_cache
19+ image : node:lts-alpine
20+ cache :
21+ key : " $CI_COMMIT_REF_SLUG"
22+ paths :
23+ - .pnpm-store
24+ policy : pull
25+
1826# Jobs templates.
1927.build_definition : &build_definition
28+ << : *ui_cache
2029 image : docker:20.10.12
2130 stage : build
2231 services :
Original file line number Diff line number Diff line change 2323 - ui/**/*
2424 when : manual
2525
26+ .ui_cache : &ui_cache
27+ image : node:lts-alpine
28+ cache :
29+ key : " $CI_COMMIT_REF_SLUG"
30+ paths :
31+ - .pnpm-store
32+ policy : pull
33+
2634# Environments.
2735.environment_production : &env_production
2836 environment :
5866
5967# Jobs templates.
6068.build_definition : &build_definition
69+ << : *ui_cache
6170 stage : build
6271 image : docker:20.10.12
6372 services :
6473 - docker:dind
6574 script :
6675 - apk add --no-cache bash
6776 - bash ./ui/packages/platform/ci_docker_build_push.sh
77+ needs :
78+ - job : check-code-style
79+ artifacts : false
6880
6981.deploy_definition : &deploy_definition
7082 stage : deploy
You can’t perform that action at this time.
0 commit comments