Fix issues with gitlab not caching/artifacting the correct things

This commit is contained in:
Daniel_I_Am 2020-09-29 20:10:23 +02:00
parent ef24b49744
commit c964a58afd
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -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