Compare commits

...

10 Commits

Author SHA1 Message Date
cnb.aUOqoEV4wEA
4b9616b970
编辑文件 .cnb.yml
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
2025-11-13 11:34:41 +08:00
cnb.aUOqoEV4wEA
79a8cc32f6
编辑文件 .cnb.yml 2025-11-13 11:32:27 +08:00
cnb.aUOqoEV4wEA
03fd813e19
编辑文件 .cnb.yml 2025-11-12 23:31:47 +08:00
cnb.aUOqoEV4wEA
ff8f9b01ec
编辑文件 .cnb.yml 2025-11-12 23:21:01 +08:00
cnb.aUOqoEV4wEA
7b20cb2494
编辑文件 .cnb.yml 2025-11-12 23:19:31 +08:00
cnb.aUOqoEV4wEA
51e4e7a5b2
编辑文件 cache.dockerfile 2025-11-12 23:16:16 +08:00
cnb.aUOqoEV4wEA
46466c50f4
编辑文件 cache.dockerfile 2025-11-12 23:14:37 +08:00
cnb.aUOqoEV4wEA
529d287a85
编辑文件 .cnb.yml 2025-11-12 23:13:31 +08:00
cnb.aUOqoEV4wEA
a9dc30e311
编辑文件 cache.dockerfile 2025-11-12 23:12:35 +08:00
cnb.aUOqoEV4wEA
67df5b6a38
编辑文件 cache.dockerfile 2025-11-12 23:11:24 +08:00
2 changed files with 25 additions and 30 deletions

View File

@ -10,25 +10,28 @@ $:
- name: init - name: init
script: npm install pnpm -g && pnpm i script: npm install pnpm -g && pnpm i
main: 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: web_trigger_test:
- docker: - docker:
image: node:24 image: node:24
volumes:
- node_modules
stages: stages:
- name: build cache image - name: npm -i
type: docker:cache script: |
options: npm install -g pnpm
dockerfile: cache.dockerfile pnpm install --frozen-lockfile
by: pnpm run build:tdesign
- package.json
- package-lock.json
versionBy:
- package-lock.json
exports:
name: iot-manage-dashboard
- name: use cache image
image: iot-manage-dashboard
commands:
- cp -r "$NODE_PATH" ./node_modules
web_trigger_prod: web_trigger_prod:
- docker: - docker:
image: node:24 image: node:24

View File

@ -1,23 +1,15 @@
FROM node:22-slim AS builder FROM node:22
# --max-old-space-size
ENV NODE_OPTIONS=--max-old-space-size=8192 RUN npm config set registry http://mirrors.cloud.tencent.com/npm/ \
ENV TZ=Asia/Shanghai && npm i -g pnpm \
&& pnpm config set store-dir /lib/pnpm
ENV NODE_PATH=/app/node_modules WORKDIR /data/cache
COPY . .
RUN pnpm i
WORKDIR /app
# copy package.json and pnpm-lock.yaml to workspace
COPY . /app
RUN npm config set registry https://mirrors.cloud.tencent.com/npm/
RUN npm install -g pnpm@10.14.0
RUN pnpm install --frozen-lockfile
RUN echo "Builder Success 🎉" RUN echo "Builder Success 🎉"