iot-manage-dashboard/.cnb.yml
cnb.aUOqoEV4wEA 4b9616b970
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
编辑文件 .cnb.yml
2025-11-13 11:34:41 +08:00

55 lines
1.5 KiB
YAML

$:
# vscode 事件:专供页面中启动远程开发用
vscode:
- docker:
image: node:24
services:
- vscode
- docker
stages:
- name: init
script: npm install pnpm -g && pnpm i
main:
push:
- imports: https://cnb.cool/risenstars/iot-env/-/blob/main/env.yml
stages:
- name: sync to gitea
image: tencentcom/git-sync
settings:
target_url: https://git.risenstars.com/risenstars/iot-manage-dashboard.git
auth_type: https
username: ${GIT_USERNAME}
password: ${GIT_ACCESS_TOKEN}
web_trigger_test:
- docker:
image: node:24
volumes:
- node_modules
stages:
- name: npm -i
script: |
npm install -g pnpm
pnpm install --frozen-lockfile
pnpm run build:tdesign
web_trigger_prod:
- docker:
image: node:24
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
- name: 使用 rsync 复制文件
image: tencentcom/rsync
settings:
hosts:
- ${REMOTE_HOST}
user: ${REMOTE_USERNAME}
key: ${PRIVATE_KEY}
port: ${REMOTE_PORT}
target: /www/wwwroot/hub.risenstars.com
source: ./apps/web-tdesign/dist