Skip to content
Snippets Groups Projects

Added cache usage to ci

Merged Magnus Lutro Allison requested to merge update-pipeline into main
1 file
+ 12
1
Compare changes
  • Side-by-side
  • Inline
+ 12
1
image: node:16-buster
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
@@ -12,6 +13,11 @@ install_dependencies:
stage: install
script:
- npm ci
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: push
init_backend_server:
stage: init
@@ -21,4 +27,9 @@ init_backend_server:
- sleep 20
- pkill node
dependencies:
- install_dependencies
\ No newline at end of file
- install_dependencies
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: pull
\ No newline at end of file
Loading