Added database connector support: mysql and postgresql
Build and push PHP 5 container images / Build PHP 5 container images (blank, cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 53s Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Successful in 55s Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (mysql, full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, cli, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, cli, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, debug, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, full, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (postgresql, full, blank, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (blank, debug, apache, map[os:alpine os_version:3.6 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details

This commit is contained in:
Muhamad Aditya Prima 2024-12-16 19:58:23 +07:00
parent d5421aa456
commit 6dd42dc434
2 changed files with 27 additions and 2 deletions

View File

@ -14,6 +14,7 @@ jobs:
strategy:
matrix:
server: ["blank", "apache"]
database: ["blank", "mysql", "postgresql"]
flavors: ["cli", "full", "debug"]
version:
- os: "alpine"
@ -33,7 +34,7 @@ jobs:
# uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- if: ${{ matrix.server == 'blank' }}
- if: ${{ matrix.server == 'blank' && matrix.database == 'blank' }}
name: Build and push php5
uses: docker/build-push-action@v5
with:
@ -47,7 +48,7 @@ jobs:
PHP_VER_SHORT=${{ matrix.version.php_ver_short }}
tags: |
quay.io/sindigilive/php:${{ matrix.version.php_version }}-${{ matrix.flavors }}-${{ matrix.version.os }}
- if: ${{ matrix.server == 'apache' }}
- if: ${{ matrix.server == 'apache' && matrix.database == 'blank' }}
name: Build and push php5 with apache2
uses: docker/build-push-action@v5
with:
@ -62,6 +63,22 @@ jobs:
WITH_APACHE=true
tags: |
quay.io/sindigilive/php:${{ matrix.version.php_version }}-${{ matrix.flavors }}-${{ matrix.server }}-${{ matrix.version.os }}
- if: ${{ matrix.server == 'apache' && matrix.database != 'blank' && matrix.flavors != 'cli' }}
name: Build and push php5 with apache2 and database connector library
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 5/Dockerfile.${{ matrix.server }}-${{ matrix.version.os }}
build-args: |
OS_VERSION=${{ matrix.version.os_version }}
FLAVOR=${{ matrix.flavors }}
PHP_VERSION=${{ matrix.version.php_version }}
PHP_VER_SHORT=${{ matrix.version.php_ver_short }}
WITH_APACHE=true
WITH_DATABASE=${{ matrix.database }}
tags: |
quay.io/sindigilive/php:${{ matrix.version.php_version }}-${{ matrix.flavors }}-${{ matrix.server }}-${{ matrix.database }}-${{ matrix.version.os }}
# build-latest:
# name: Build latest nginx alpine based container images
# runs-on: ubuntu-latest

View File

@ -55,4 +55,12 @@ if [ "$WITH_APACHE" == "true" ]; then
sed -i "s|Require ip 127|Require all granted|" /etc/apache2/conf.d/info.conf ;
sed -i "s|/run/apache2/httpd.pid|${SERVER_ROOT}/run/httpd.pid|" /etc/apache2/conf.d/mpm.conf ;
fi
fi
if ["$WITH_DATABASE" == "postgresql"]; then
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-pdo php$PHP_VER_SHORT-pdo_pgsql php$PHP_VER_SHORT-pgsql ;
fi
if ["$WITH_DATABASE" == "mysql"]; then
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-pdo php$PHP_VER_SHORT-pdo_mysql php$PHP_VER_SHORT-mysql php$PHP_VER_SHORT-mysqli ;
fi