From b6b4ab66be6424fccc5fa7a9bca0355c44b2a234 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Wed, 28 Aug 2019 13:17:11 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a00e0c1..4bdd28d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,12 +4,21 @@ stages: prepare_node: stage: prepare image: node:10 - script: + before_script: - npm install + script: + - npm run prod artifacts: paths: - node_modules - - /root/.npm + - public/css/all.css + - /root/.node-gyp + cache: + # Cache per Branch + key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG" + paths: + - node_modules + - /root/.node-gyp only: - branches - tags \ No newline at end of file -- GitLab