From b0102178fc29946431d445536a45f94fe7e81b76 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 31 Aug 2017 22:58:06 +0200 Subject: [PATCH] cache in CI only in build --- .gitlab-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02e3e79..74dbd35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,3 @@ - -cache: - paths: - - node_modules/ - stages: - build # - test @@ -17,6 +12,9 @@ build_ui: - git submodule update --init - npm install - npm run build + cache: + paths: + - node_modules/ artifacts: name: "basispanel-ui-$CI_COMMIT_REF_NAME" expire_in: 1h