File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build PHP 7.2.34 Image
1+ name : Build PHP 7.x Image
22
33on :
44 workflow_dispatch :
55 inputs :
66 php_version :
7- description : ' PHP 7.2 Version'
7+ description : ' PHP 7.x Version'
88 default : ' 7.2.34'
99 required : true
1010 install_ext_version :
@@ -31,15 +31,14 @@ jobs:
3131 username : ${{ secrets.DOCKERHUB_USERNAME }}
3232 password : ${{ secrets.DOCKERHUB_PASSWORD }}
3333
34- - name : Build PHP-7.2 and Push
34+ - name : Build PHP-7.x and Push
3535 uses : docker/build-push-action@v5
3636 with :
37- context : php/7.2.34
38- file : php/7.2.34 /Dockerfile
37+ context : php/${{ github.event.inputs.php_version }}
38+ file : php/${{ github.event.inputs.php_version }} /Dockerfile
3939 platforms : linux/amd64,linux/arm/v7,linux/arm64/v8
4040 push : true
4141 build-args :
42- PHP_VERSION=${{ github.event.inputs.php_version }}
4342 INSTALL_EXT_VERSION=${{ github.event.inputs.install_ext_version }}
4443 tags : |
4544 1panel/php:${{ github.event.inputs.php_version }}-fpm
You can’t perform that action at this time.
0 commit comments