2
continuous-integration/drone/push Build is failing Details

master
chenyuepan 2 weeks ago
parent 62233570b4
commit 591bf9bff3

@ -4,7 +4,7 @@ name: venue_reservation_manage
steps: steps:
- name: prepare - name: prepare
image: node:18-alpine # 继续使用Node 18 image: node:18-alpine
volumes: volumes:
- name: node-model - name: node-model
path: /app/model path: /app/model
@ -13,11 +13,19 @@ steps:
- name: node-build - name: node-build
path: /app/build path: /app/build
commands: commands:
- npm install -g pnpm # 安装pnpm - npm install -g pnpm
- pnpm config set store-dir /app/model # 设置pnpm存储目录 - pnpm config set store-dir /app/model
- pnpm config set registry https://registry.npmjs.org # 使用官方npm registry更稳定 - pnpm config set registry https://registry.npmjs.org
- pnpm install --frozen-lockfile # 安装依赖使用现有lockfile
- pnpm run build # 构建项目 # 检查是否存在 pnpm-lock.yaml不存在则生成
- |
if [ ! -f "pnpm-lock.yaml" ]; then
echo "pnpm-lock.yaml 不存在,正在生成..."
pnpm install --lockfile-only
fi
- pnpm install --frozen-lockfile
- pnpm run build
- cp -r dist /app/build/ - cp -r dist /app/build/
- cp Dockerfile /app/build/ - cp Dockerfile /app/build/
- cp default.conf /app/build/ - cp default.conf /app/build/

@ -0,0 +1 @@
*
Loading…
Cancel
Save