This commit is contained in:
@@ -32,17 +32,19 @@ steps:
|
|||||||
- cd /drone/src
|
- cd /drone/src
|
||||||
- git checkout ${DRONE_BRANCH}
|
- git checkout ${DRONE_BRANCH}
|
||||||
- echo "✅ 当前分支:$(git rev-parse --abbrev-ref HEAD)"
|
- echo "✅ 当前分支:$(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
- echo "当前目录"
|
||||||
|
- ls
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: repo-volume
|
- name: repo-volume
|
||||||
mountPath: /drone/src
|
mountPath: /drone/src
|
||||||
|
|
||||||
# 1️⃣ 验证 + 安装依赖 + 类型检查 + lint + 测试 + 构建
|
# 1️⃣ 验证 + 安装依赖 + 类型检查 + lint + 测试 + 构建
|
||||||
- name: verify-and-build
|
- name: verify-and-build
|
||||||
image: gitea.local.knowai/tobegold574/knowai-base:latest
|
image: gitea.local.knowai/tobegold574/knowai-base
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
commands:
|
commands:
|
||||||
- cd /drone/src/frontend/knowai-core
|
- cd /drone/src/knowai-core
|
||||||
|
|
||||||
# 验证 Node.js 和 pnpm
|
# 验证 Node.js 和 pnpm
|
||||||
- node --version
|
- node --version
|
||||||
|
|||||||
Reference in New Issue
Block a user