Commit 1dd3dd39 authored by zhaoxuanchao's avatar zhaoxuanchao
Browse files

Update .gitlab-ci.yml

parent ad526fd2
Pipeline #2601 failed with stages
in 11 seconds
...@@ -7,9 +7,6 @@ cache: ...@@ -7,9 +7,6 @@ cache:
- node_modules/ - node_modules/
policy: pull-push policy: pull-push
variables:
NODE_MODULES_PATH: /runner-cache/frontend/$CI_COMMIT_SHA/node_modules
stages: stages:
- prepare - prepare
- build - build
...@@ -17,15 +14,15 @@ stages: ...@@ -17,15 +14,15 @@ stages:
install_dependencies: install_dependencies:
before_script: before_script:
- /bin/bash /var/run/ci/mkdir .sh $NODE_MODULES_PATH - /bin/bash /var/run/ci/mkdir .sh /${CI_COMMIT_SHA}/node_modules
- ln -s $NODE_MODULES_PATH . - ln -s /${CI_COMMIT_SHA}/node_modules .
stage: prepare stage: prepare
script: script:
- yarn install - yarn install
.build_job: .build_job:
before_script: before_script:
- ln -s $NODE_MODULES_PATH - ln -s /${CI_COMMIT_SHA}/node_modules
stage: build stage: build
script: script:
- echo "build" - echo "build"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment