From c964a58afd20e5dbfd137bec3529bff2ad64404a Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Tue, 29 Sep 2020 20:10:23 +0200 Subject: [PATCH] Fix issues with gitlab not caching/artifacting the correct things --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 366d57a..4cf26fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,8 +6,8 @@ variables: GIT_SUBMODULE_STRATEGY: recursive OBJECTS_DIRECTORY: 'obj' NUGET_PACKAGES_DIRECTORY: '.nuget' - SOURCE_CODE_PATH: 'ChaosBot/*/' - NODE_MODULES_DIRECTORY: 'ChaosBot/wwwroot/node_modules' + SOURCE_CODE_PATH: 'ChaosBot/' + NODE_MODULES_DIRECTORY: 'wwwroot/node_modules' stages: - version @@ -30,7 +30,7 @@ cache: # 3) Path to the directory where restored dependencies are kept. - '$NUGET_PACKAGES_DIRECTORY' # 4) Path to node_modules - - '$NODE_MODULES_DIRECTORY' + - '$SOURCE_CODE_PATH$NODE_MODULES_DIRECTORY' # policy: pull-push @@ -129,7 +129,7 @@ tests_node: - 'yarn lint' artifacts: paths: - - wwwroot/dist/ + - ChaosBot/wwwroot/dist/ release_node: image: node:latest @@ -150,7 +150,7 @@ release_node: - 'yarn build' artifacts: paths: - - wwwroot/dist/** + - ChaosBot/wwwroot/dist/** docker: image: docker:stable