use node:alpine, but cache node modules [skip-ci]
This commit is contained in:
parent
85e272e923
commit
c370aed900
@ -17,16 +17,25 @@ stages:
|
|||||||
########
|
########
|
||||||
# BUILD
|
# BUILD
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
#build_fe:
|
|
||||||
# image: node:alpine
|
|
||||||
# script:
|
|
||||||
# - echo ''
|
|
||||||
# extends:
|
|
||||||
# - .build
|
|
||||||
.build:
|
.build:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
||||||
|
build_fe:
|
||||||
|
image: node:alpine
|
||||||
|
script:
|
||||||
|
- cd ./frontend
|
||||||
|
- npm install
|
||||||
|
cache:
|
||||||
|
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- package-lock.json
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
|
||||||
|
|
||||||
build_be:
|
build_be:
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
@ -56,8 +65,16 @@ lint_fe:
|
|||||||
extends:
|
extends:
|
||||||
- .lint
|
- .lint
|
||||||
- .angular-image
|
- .angular-image
|
||||||
# needs:
|
cache:
|
||||||
# - build_fe
|
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
policy: pull-push
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- package-lock.json
|
||||||
|
needs:
|
||||||
|
- build_fe
|
||||||
|
|
||||||
#lint_be:
|
#lint_be:
|
||||||
# script:
|
# script:
|
||||||
@ -78,6 +95,11 @@ test_fe:
|
|||||||
- cd ./frontend
|
- cd ./frontend
|
||||||
- npm update
|
- npm update
|
||||||
- ng test
|
- ng test
|
||||||
|
cache:
|
||||||
|
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
policy: pull
|
||||||
extends:
|
extends:
|
||||||
- .test
|
- .test
|
||||||
- .angular-image
|
- .angular-image
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user