-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cnb.yml
More file actions
40 lines (40 loc) · 1.37 KB
/
.cnb.yml
File metadata and controls
40 lines (40 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
master:
push:
- name: sync
runner:
cpus: 1
imports: https://cnb.cool/ecustcic/key/-/blob/main/env.yml
stages:
- name: sync to gitee
image: tencentcom/git-sync
settings:
target_url: https://gitee.com/ecustcic/ecustcic-web.git
auth_type: https
username: ${GITEE_USERNAME}
password: ${GITEE_ACCESS_TOKEN}
force: true
- name: sync to github
image: tencentcom/git-sync
settings:
target_url: https://github.com/ECUSTCIC-CodeHub/ecustcic-web.git
auth_type: https
username: ${GITHUB_USERNAME}
password: ${GITHUB_ACCESS_TOKEN}
force: true
- name: edgeone
runner:
cpus: 2
imports: https://cnb.cool/ecustcic/key/-/blob/main/env.yml
stages:
# 构建当前项目
- name: Build Current Project
image: docker.cnb.cool/arsrna/dev-env/node22
script: |
node -v
npm config set registry http://mirrors.tencent.com/npm/
npm install
npm run build
# 将构建输出部署到 EdgeOne Pages
- name: Deploy to EdgeOne Pages
image: tencentcom/deploy-eopages:latest
script: edgeone pages deploy ./dist -n ecustcic -t $EDGEONE_API_TOKEN