Skip to content

Commit 5f2fe49

Browse files
feat: update workflow yaml
1 parent 43a4aaf commit 5f2fe49

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/php7.x-release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ on:
77
description: 'PHP 7.x Version'
88
default: '7.2.34'
99
required: true
10+
php_dir:
11+
description: 'Dockerfile Directory'
12+
default: '7.2.34'
13+
required: true
14+
platform:
15+
description: 'platform'
16+
default: 'linux/amd64,linux/arm64/v8,linux/arm/v7'
17+
required: true
1018
jobs:
1119
docker:
1220
runs-on: ubuntu-latest
@@ -29,9 +37,9 @@ jobs:
2937
- name: Build PHP-7.x and Push
3038
uses: docker/build-push-action@v5
3139
with:
32-
context: php/${{ github.event.inputs.php_version }}
33-
file: php/${{ github.event.inputs.php_version }}/Dockerfile
34-
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
40+
context: php/${{ github.event.inputs.php_dir }}
41+
file: php/${{ github.event.inputs.php_dir }}/Dockerfile
42+
platforms: ${{ github.event.inputs.platform }}
3543
push: true
3644
tags: |
3745
1panel/php:${{ github.event.inputs.php_version }}-fpm

0 commit comments

Comments
 (0)