mirror of
https://github.com/EdyTheCow/docker-whmcs.git
synced 2026-04-02 02:38:13 +00:00
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
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:
4
.github/workflows/build-image-common.yml
vendored
4
.github/workflows/build-image-common.yml
vendored
@@ -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 }}
|
||||
18
.github/workflows/build-whmcs-php-fpm.yml
vendored
18
.github/workflows/build-whmcs-php-fpm.yml
vendored
@@ -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 }}
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user