Add install dependencies stage.
This commit is contained in:
parent
6aaf05bacd
commit
13ac7fe77c
@ -1,7 +1,23 @@
|
|||||||
job_1:
|
stages:
|
||||||
stage: stage_a
|
- install
|
||||||
|
|
||||||
|
install_dependencies:
|
||||||
|
stage: install
|
||||||
image: node:15-alpine3.10
|
image: node:15-alpine3.10
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- node --version
|
- npm install
|
||||||
|
cache:
|
||||||
|
key:
|
||||||
|
files:
|
||||||
|
- package-lock.json
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
policy: pull
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- merge_requests
|
||||||
|
- master
|
||||||
|
changes:
|
||||||
|
- package-lock.json
|
||||||
|
Loading…
Reference in New Issue
Block a user