From 3ac80cc3e5a78d7c37324778c0cfd53c885ca3fb Mon Sep 17 00:00:00 2001 From: MrKBear Date: Sun, 20 Feb 2022 10:56:32 +0800 Subject: [PATCH] Drone CI Test --- .drone.yml | 10 +++++++++- config/webpack.lab.js | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d1632c7..a5c47b3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,9 @@ kind: pipeline type: docker name: LivingTogether-Lab +workspace: + path: /drone/src + steps: - name: npm build pull: if-not-exists @@ -9,6 +12,8 @@ steps: volumes: - name: publish path: /tmp/cache + - name: node_modules + path: /drone/src/node_modules commands: - npm config set registry https://registry.npm.taobao.org - npm ci @@ -19,4 +24,7 @@ steps: volumes: - name: publish host: - path: /http/demo/living-together-lab \ No newline at end of file + path: /http/demo/living-together-lab +- name: node_modules + host: + path: /tmp/node_modules/living-together \ No newline at end of file diff --git a/config/webpack.lab.js b/config/webpack.lab.js index 73f450e..a2dbab1 100644 --- a/config/webpack.lab.js +++ b/config/webpack.lab.js @@ -39,7 +39,7 @@ module.exports = (env) => { }, plugins: [ - HTMLPage("Laboratory.html", "Living Together | Laboratory"), + HTMLPage("index.html", "Living Together | Laboratory"), CssPlugin(), AutoFixCssPlugin() ],