|
@@ -6,24 +6,26 @@ node:
|
|
|
mode: local_test
|
|
|
|
|
|
steps:
|
|
|
- - name: yarn-install
|
|
|
- image: gplane/pnpm:node20
|
|
|
- volumes:
|
|
|
- - name: modules-cache
|
|
|
- path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
|
|
|
- commands:
|
|
|
-# - yarn build
|
|
|
-# - pnpm config set registry https://registry.npmmirror.com/
|
|
|
-# - pnpm install
|
|
|
-# - pnpm run build
|
|
|
- - pnpm serve
|
|
|
+# - name: yarn-install
|
|
|
+# image: gplane/pnpm:node20
|
|
|
+# volumes:
|
|
|
+# - name: modules-cache
|
|
|
+# path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
|
|
|
+# commands:
|
|
|
+# # - yarn build
|
|
|
+# # - pnpm config set registry https://registry.npmmirror.com/
|
|
|
+# # - pnpm install
|
|
|
+# # - pnpm run build
|
|
|
+# - pnpm serve
|
|
|
|
|
|
- name: build
|
|
|
image: docker:20.10.7
|
|
|
- depends_on: [yarn-install]
|
|
|
+ # depends_on: [yarn-install]
|
|
|
volumes:
|
|
|
- name: docker
|
|
|
path: /var/run/docker.sock
|
|
|
+ - name: modules-cache
|
|
|
+ path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
|
|
|
environment:
|
|
|
IMAGE: registry.yingcaibx.com/tl/admin_web:latest
|
|
|
commands:
|