编辑文件 .cnb.yml

This commit is contained in:
cnb.aUOqoEV4wEA 2025-11-11 19:29:02 +08:00 committed by cnb
parent e30038457a
commit a67eebe490
No known key found for this signature in database
GPG Key ID: 074E9EA8B7D5A8A3

View File

@ -8,4 +8,48 @@ $:
- docker - docker
stages: stages:
- name: init - name: init
script: npm install pnpm -g && pnpm i && pnpm run dev:tdesign script: npm install pnpm -g && pnpm i
$:
main:
web_trigger_test:
- docker:
image: node:22
imports: https://cnb.cool/risenstars/iot-env/-/blob/main/env.yml
stages:
- name: npm install
script: |
npm install -g pnpm
pnpm install --no-frozen-lockfile
pnpm run build:tdesign:pre
- name: 使用 rsync 复制文件
image: tencentcom/rsync
settings:
hosts:
- ${REMOTE_HOST}
user: ${REMOTE_USERNAME}
key: ${PRIVATE_KEY}
port: ${REMOTE_PORT}
target: /www/wwwroot/hub.risenstars.com/pre
source: ./dist
web_trigger_prod:
- docker:
image: node:22
imports: https://cnb.cool/risenstars/iot-env/-/blob/main/env.yml
stages:
- name: npm install
script: |
npm install -g pnpm
pnpm install --no-frozen-lockfile
pnpm run build:tdesign:prod
- name: 使用 rsync 复制文件
image: tencentcom/rsync
settings:
hosts:
- ${REMOTE_HOST}
user: ${REMOTE_USERNAME}
key: ${PRIVATE_KEY}
port: ${REMOTE_PORT}
target: /www/wwwroot/hub.risenstars.com/prod
source: ./dist