Skip to content

Commit 36b0822

Browse files
feat: build node support set platform
1 parent e2e5642 commit 36b0822

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.cnb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ main:
1515

1616
- name: docker build and push
1717
script: docker buildx build
18-
--platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
18+
--platform $PLATFORM
1919
--build-arg NODE_VERSION=$NODE_VERSION
2020
-t $IMAGE_TAG
2121
-f node/Dockerfile

.cnb/web_trigger.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,8 @@ branch:
2323
description: "Node.js 版本"
2424
default: "18.20.8"
2525
required: true
26-
# node21Version:
27-
# name: "Node.js 21.x 版本"
28-
# description: "Node.js 21.x 版本"
29-
# default: "21.7.3"
30-
# required: true
31-
# node20Version:
32-
# name: "Node.js 20.x 版本"
33-
# description: "Node.js 20.x 版本"
34-
# default: "20.19.3"
35-
# required: true
36-
# node18Version:
37-
# name: "Node.js 18.x 版本"
38-
# description: "Node.js 18.x 版本"
39-
# default: "18.20.8"
40-
# required: true
26+
PLATFORM:
27+
name: "编译平台"
28+
description: "编译平台,多个用逗号分隔"
29+
default: "linux/amd64,linux/arm64,linux/ppc64le,linux/s390x"
30+
required: true

0 commit comments

Comments
 (0)