|
@@ -6,19 +6,20 @@ node:
|
|
mode: local_test
|
|
mode: local_test
|
|
|
|
|
|
steps:
|
|
steps:
|
|
-# - name: yarn-install
|
|
|
|
-# image: node:18.16.1
|
|
|
|
-# volumes:
|
|
|
|
-# - name: modules-cache
|
|
|
|
-# path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
|
|
|
|
-# commands:
|
|
|
|
-# - yarn config set registry http://registry.npmjs.org
|
|
|
|
-# - yarn install
|
|
|
|
-# - yarn run build
|
|
|
|
|
|
+ - name: yarn-install
|
|
|
|
+ image: node:18.16.1
|
|
|
|
+ volumes:
|
|
|
|
+ - name: modules-cache
|
|
|
|
+ path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
|
|
|
|
+ commands:
|
|
|
|
+ - yarn i pnpm
|
|
|
|
+ # - pnpm config set registry http://registry.npmjs.org
|
|
|
|
+ - pnpm install
|
|
|
|
+ - pnpm run build
|
|
|
|
|
|
- name: build
|
|
- name: build
|
|
image: docker:20.10.7
|
|
image: docker:20.10.7
|
|
-# depends_on: [yarn-install]
|
|
|
|
|
|
+ depends_on: [yarn-install]
|
|
volumes:
|
|
volumes:
|
|
- name: docker
|
|
- name: docker
|
|
path: /var/run/docker.sock
|
|
path: /var/run/docker.sock
|
|
@@ -50,7 +51,7 @@ volumes:
|
|
path: /var/run/docker.sock
|
|
path: /var/run/docker.sock
|
|
- name: modules-cache
|
|
- name: modules-cache
|
|
host:
|
|
host:
|
|
- path: /data/cache/tl/web
|
|
|
|
|
|
+ path: /data/cache/tl/new_web
|
|
|
|
|
|
---
|
|
---
|
|
kind: pipeline
|
|
kind: pipeline
|
|
@@ -61,19 +62,19 @@ node:
|
|
mode: local_pre
|
|
mode: local_pre
|
|
|
|
|
|
steps:
|
|
steps:
|
|
-# - name: yarn-install
|
|
|
|
-# image: node:18.16.1
|
|
|
|
-# volumes:
|
|
|
|
-# - name: modules-cache
|
|
|
|
-# path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
|
|
|
|
-# commands:
|
|
|
|
-# - yarn config set registry http://registry.npmjs.org
|
|
|
|
-# - yarn install
|
|
|
|
-# - yarn run build
|
|
|
|
|
|
+ - name: yarn-install
|
|
|
|
+ image: node:18.16.1
|
|
|
|
+ volumes:
|
|
|
|
+ - name: modules-cache
|
|
|
|
+ path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
|
|
|
|
+ commands:
|
|
|
|
+ # - pnpm config set registry http://registry.npmjs.org
|
|
|
|
+ - pnpm install
|
|
|
|
+ - pnpm run build
|
|
|
|
|
|
- name: build
|
|
- name: build
|
|
image: docker:20.10.7
|
|
image: docker:20.10.7
|
|
-# depends_on: [yarn-install]
|
|
|
|
|
|
+ depends_on: [yarn-install]
|
|
volumes:
|
|
volumes:
|
|
- name: docker
|
|
- name: docker
|
|
path: /var/run/docker.sock
|
|
path: /var/run/docker.sock
|