mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 19:52:53 +00:00
ci: use cache instead of artifacts for node modules
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
image: registry.gitlab.com/openstapps/app
|
image: registry.gitlab.com/openstapps/app
|
||||||
|
|
||||||
|
cache:
|
||||||
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- setup
|
- setup
|
||||||
- build
|
- build
|
||||||
@@ -20,6 +28,8 @@ setup:
|
|||||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
|
||||||
- docker build -t registry.gitlab.com/openstapps/app .
|
- docker build -t registry.gitlab.com/openstapps/app .
|
||||||
- docker push registry.gitlab.com/openstapps/app
|
- docker push registry.gitlab.com/openstapps/app
|
||||||
|
cache: {} # disable irrelevant cache for this job
|
||||||
|
before_script: [] # do not run irrelevant before script for this job
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
@@ -30,7 +40,6 @@ build:
|
|||||||
- npm run build
|
- npm run build
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- node_modules
|
|
||||||
- www
|
- www
|
||||||
|
|
||||||
unit:
|
unit:
|
||||||
|
|||||||
Reference in New Issue
Block a user