Skip to content

Commit 14a7fbf

Browse files
feat: update build php image cnb yaml
1 parent fb6d056 commit 14a7fbf

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.cnb.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ main:
2121
-f node/Dockerfile
2222
node/
2323
--push
24-
web_trigger_build_php_7_x_image:
24+
web_trigger_build_php_image:
2525
- runner:
2626
tags: cnb:arch:amd64:containerd-snapshotter
2727
services:
@@ -37,9 +37,8 @@ main:
3737

3838
- name: docker build and push
3939
script: docker buildx build
40-
--platform linux/amd64,linux/arm/v7,linux/arm64/v8
40+
--platform $PLATFORM
4141
-t $IMAGE_TAG
4242
-f php/$PHP_VERSION/Dockerfile
4343
php/$PHP_VERSION/
44-
--push
45-
44+
--push

.cnb/web_trigger.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
branch:
22
- buttons:
3-
- name: "编译 PHP 7.x 镜像"
4-
event: web_trigger_build_php_7_x_image
3+
- name: "编译 PHP 镜像"
4+
event: web_trigger_build_php_image
55
permissions:
66
roles:
77
- owner
@@ -10,6 +10,11 @@ branch:
1010
name: "PHP 版本"
1111
description: "PHP 版本"
1212
default: "7.2.34"
13+
required: true
14+
PLATFORM:
15+
name: "编译平台"
16+
description: "编译平台,多个用逗号分隔"
17+
default: "linux/amd64,linux/arm64,linux/ppc64le,linux/s390x"
1318
required: true
1419
- buttons:
1520
- name: "编译 Node.js 镜像"

0 commit comments

Comments
 (0)