build more variants

This commit is contained in:
Robin Appelman 2022-03-10 14:36:34 +01:00
commit 6a056bc9dd
2 changed files with 7 additions and 8 deletions

View file

@ -16,6 +16,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
php-versions: ['7.3', '7.4', '8.0', '8.1'] php-versions: ['7.3', '7.4', '8.0', '8.1']
variant: ['cli', 'apache', 'fpm']
steps: steps:
- name: Checkout patch files - name: Checkout patch files
@ -35,12 +36,13 @@ jobs:
- name: Patch dockerfiles - name: Patch dockerfiles
run: | run: |
patch -N -p1 -d php < debug.patch patch -N -p1 -d php < debug.patch
patch -N -p1 -d php < version.patch jq '. | with_entries(select(.key == "${{ matrix.php-versions }}"))' php/versions.json > php/versions.json.new
mv php/versions.json.new php/versions.json
cd php; ./apply-templates.sh cd php; ./apply-templates.sh
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: php/${{ matrix.php-versions }}/bullseye/fpm context: php/${{ matrix.php-versions }}/bullseye/${{ matrix.variant }}
push: true push: true
tags: icewind1991/php-dbg:${{ matrix.php-versions }}-fpm tags: icewind1991/php-dbg:${{ matrix.php-versions }}-${{ matrix.variant }}

View file

@ -6,11 +6,8 @@ Docker images for php with debug symbols included
PHP docker images based on the official ones but with debug symbols included. PHP docker images based on the official ones but with debug symbols included.
Currently, only has debian based fpm images Currently only has debian based images
## Where ## Where
- `icewind1991/php-dbg:7.3-fpm` https://hub.docker.com/r/icewind1991/php-dbg
- `icewind1991/php-dbg:7.4-fpm`
- `icewind1991/php-dbg:8.0-fpm`
- `icewind1991/php-dbg:8.1-fpm`