automated_admin/.drone.yml
lixin 102f21b499
Some checks failed
continuous-integration/drone/push Build is failing
ci: 将 Drone CI 中的 yarn 替换为 pnpm
- 将 yarn 配置命令替换为 pnpm 配置命令
- 将 yarn install 和 yarn build 替换为 pnpm install 和 pnpm build
- 保留了原有的缓存路径和注释掉的命令
2025-01-17 11:46:47 +08:00

41 lines
975 B
YAML

kind: pipeline
type: docker
name: deploy
#
volumes:
- name: node_modules
host:
path: /usr/local/frontend/node_modules
- name: web_build_dir
host:
path: /opt/1panel/apps/openresty/openresty/www/sites/120.48.5.80/index
- name: yarn_cache
host:
path: /usr/local/frontend/yarn_cache
steps:
- name: build-project
image: node:22-alpine
depends_on: [clone]
mirror: https://docker.1panelproxy.com
volumes:
- name: node_modules
path: /drone/src/node_modules
- name: web_build_dir
path: /drone/src/dist
- name: yarn_cache
path: /usr/local/share/.cache/yarn/v6
commands:
# - npm config set registry https://registry.npm.taobao.org
- pnpm config set registry https://registry.npmmirror.com
- pnpm install
- pnpm build
#- npm cache clean --force
# - npm install
# - npm run build:prod
trigger:
branch:
- main
event:
- push