Build more PHP versions
Some checks failed
Build WHMCS PHP-FPM / build (7.2) (push) Has been cancelled
Build WHMCS PHP-FPM / build (7.3) (push) Has been cancelled
Build WHMCS PHP-FPM / build (7.4) (push) Has been cancelled
Build WHMCS PHP-FPM / build (8.1) (push) Has been cancelled
Build WHMCS PHP-FPM / build (8.2) (push) Has been cancelled
Build WHMCS PHP-FPM / build (true, 8.3) (push) Has been cancelled

This commit is contained in:
EdyTheCow
2025-10-26 16:36:56 +01:00
parent dac0db31c9
commit 1a5f21267f
3 changed files with 22 additions and 3 deletions

View File

@@ -12,6 +12,9 @@ on:
cache_scope:
required: true
type: string
build_args:
required: false
type: string
jobs:
build-and-push:
@@ -40,5 +43,6 @@ jobs:
context: ${{ inputs.context }}
push: true
tags: ${{ inputs.image_tag }}
build-args: ${{ inputs.build_args }}
cache-from: type=gha,scope=${{ inputs.cache_scope }}
cache-to: type=gha,mode=max,scope=${{ inputs.cache_scope }}

View File

@@ -11,8 +11,22 @@ on:
jobs:
build:
strategy:
fail-fast: false
matrix:
php: [ "7.2", "7.3", "7.4", "8.1", "8.2", "8.3" ]
include:
# Mark the "latest" for 8.3
- php: "8.3"
latest: true
uses: ./.github/workflows/build-image-common.yml
with:
context: whmcs-php-fpm
image_tag: ghcr.io/edythecow/whmcs-php-fpm:latest
cache_scope: whmcs-php-fpm
# Always tag with php-<version> and tag latest for 8.3
image_tag: |
ghcr.io/edythecow/whmcs-php-fpm:php-${{ matrix.php }}
${{ matrix.latest && 'ghcr.io/edythecow/whmcs-php-fpm:latest' || '' }}
cache_scope: whmcs-php-fpm-${{ matrix.php }}
build_args: |
PHP_VERSION=${{ matrix.php }}

View File

@@ -1,4 +1,5 @@
FROM php:8.3-fpm-bookworm
ARG PHP_VERSION=8.3
FROM php:${PHP_VERSION}-fpm
# Fetch the helper
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/