mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 03:32:52 +00:00
fix: fix ci job dependencies and caching
This commit is contained in:
committed by
Rainer Killinger
parent
9637574071
commit
f59cc5832c
@@ -1,9 +1,8 @@
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/node:latest
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/node
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- lib
|
||||
- node_modules
|
||||
|
||||
stages:
|
||||
@@ -11,25 +10,21 @@ stages:
|
||||
- test
|
||||
- publish
|
||||
|
||||
before_script:
|
||||
- npm install
|
||||
|
||||
build:
|
||||
before_script:
|
||||
- npm install
|
||||
stage: build
|
||||
script:
|
||||
- npm run build
|
||||
artifacts:
|
||||
untracked: true
|
||||
paths:
|
||||
- node_modules/
|
||||
only:
|
||||
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
|
||||
- lib
|
||||
tags:
|
||||
- docker
|
||||
|
||||
test:
|
||||
stage: test
|
||||
dependencies:
|
||||
- build
|
||||
script:
|
||||
- npm test
|
||||
tags:
|
||||
@@ -39,7 +34,6 @@ publish:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||
stage: publish
|
||||
dependencies:
|
||||
- test
|
||||
- build
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
|
||||
Reference in New Issue
Block a user