From e26a365e1e305c40ce22c2eb3dbfca3ba15e4256 Mon Sep 17 00:00:00 2001 From: Daniel Rainer <daniel.m.rainer@student.uibk.ac.at> Date: Sat, 5 Mar 2022 17:19:46 +0100 Subject: [PATCH] Use commit sha for npm cache --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index beae32cc3..f53392591 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,10 +17,9 @@ before_script: npm-install: stage: setup script: - - echo "$CI_COMMIT_REF_NAME" - npm install cache: - key: '$CI_COMMIT_REF_NAME' + key: '$CI_COMMIT_SHA' paths: - node_modules/ policy: pull-push @@ -42,7 +41,7 @@ prettier: allow_failure: true needs: [npm-install] cache: - key: '$CI_COMMIT_REF_NAME' + key: '$CI_COMMIT_SHA' paths: - node_modules/ policy: pull @@ -56,7 +55,7 @@ eslint: allow_failure: true needs: [npm-install] cache: - key: '$CI_COMMIT_REF_NAME' + key: '$CI_COMMIT_SHA' paths: - node_modules/ policy: pull @@ -122,7 +121,7 @@ frontend-test: allow_failure: true needs: [npm-install] cache: - key: '$CI_COMMIT_REF_NAME' + key: '$CI_COMMIT_SHA' paths: - node_modules/ policy: pull -- GitLab