Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/php-watch.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# One pass of the watch of the PHP packages of sury: rebuilds each PHP version whose published images do not have the
# packages published by sury (label com.thecodingmachine.php.package of each arch), with workflow.yml (8.2 to 8.5) and
# legacy-v5.yml (NodeJS 18 and 20, PHP 7.4 to 8.1). At most 3 builds for the same packages, successful or not.
# packages published by sury (label com.thecodingmachine.php.package of each arch), with workflow.yml (8.2 to 8.6) and
# legacy-v5.yml (NodeJS 18 and 20 up to PHP 8.5, PHP 7.4 to 8.1). At most 3 builds for the same packages, successful or not.
#
# Environment:
# GITHUB_REPOSITORY, GITHUB_REPOSITORY_OWNER, GITHUB_REF_NAME, GH_TOKEN set by GitHub Actions
Expand All @@ -15,7 +15,7 @@
set -euo pipefail

SURY_URL="${SURY_URL:-https://packages.sury.org/php}"
PHP_VERSIONS="${PHP_VERSIONS:-8.5 8.4 8.3 8.2 8.1 8.0 7.4}"
PHP_VERSIONS="${PHP_VERSIONS:-8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.4}"
IMAGE="ghcr.io/${GITHUB_REPOSITORY_OWNER}/php"
LABEL="com.thecodingmachine.php.package"
MAX_BUILDS=3
Expand All @@ -24,7 +24,7 @@ DIGEST_INTERVAL=1800
[[ "${ISSUE:-}" =~ ^[0-9]*$ ]] || { echo "::error::ISSUE: an issue number"; exit 1; }
[[ "${SURY_URL}" =~ ^https:// ]] || { echo "::error::SURY_URL: https only"; exit 1; }
for V in ${PHP_VERSIONS}; do
[[ " 8.5 8.4 8.3 8.2 8.1 8.0 7.4 " == *" ${V} "* ]] || { echo "::error::Unknown PHP version: ${V}"; exit 1; }
[[ " 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.4 " == *" ${V} "* ]] || { echo "::error::Unknown PHP version: ${V}"; exit 1; }
done
for F in ${FIXED:-}; do
[[ "${F}" =~ ^[0-9]\.[0-9]=[0-9A-Za-z.:+~-]+$ ]] || { echo "::error::FIXED: X.Y=version, e.g. 8.4=8.4.28"; exit 1; }
Expand Down Expand Up @@ -109,6 +109,8 @@ check() {
for V in ${PHP_VERSIONS}; do
if [[ " 7.4 8.0 8.1 " == *" ${V} "* ]]; then
check "$V" legacy-v5.yml "${V}-v5-slim-cli" "\`${V}-v5-*\`"
elif [ "${V}" = 8.6 ]; then
check "$V" workflow.yml "${V}-v5-slim-cli" "\`${V}-v5-*\`"
else
MAIN=$(check "$V" workflow.yml "${V}-v5-slim-cli" "\`${V}-v5-*\` except node18 and node20")
LEGACY=$(check "$V" legacy-v5.yml "${V}-v5-cli-node20" "\`${V}-v5-*-node18\`, \`${V}-v5-*-node20\`")
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.5", "8.4", "8.3", "8.2"]') }}
php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.6", "8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.6", "8.5", "8.4", "8.3", "8.2"]') }}
builder: [ {arch: "amd64", os: "ubuntu-24.04"}, {arch: "arm64", os: "ubuntu-24.04-arm"}]
runs-on: ${{ matrix.builder.os }}
env:
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.5", "8.4", "8.3", "8.2"]') }}
php_version: ${{ fromJSON(inputs.php_version && (contains(fromJSON('["8.6", "8.5", "8.4", "8.3", "8.2"]'), inputs.php_version) && format('["{0}"]', inputs.php_version) || '[]') || '["8.6", "8.5", "8.4", "8.3", "8.2"]') }}
steps:
- name: Checkout
uses: actions/checkout@v7
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### Minor changes

* **2026-12-04**
* New PHP 8.6 images, with all the extensions of PHP 8.5 except *swoole*, which does not support PHP 8.6 yet. See [Extensions](docs/extensions.md)
* Security: Supercronic 0.2.52 (Go stdlib vulnerabilities, 4 high). Each build of the CI now installs the latest release of Supercronic, the default version only applies to the local builds

* **2026-11-20**
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ RUN apt update \
ARG PHP_PACKAGE_VERSION=""
# Note: From PHP 8.5, opcache is built-in and php${PHP_VERSION}-opcache package doesn't exist
RUN OPCACHE_PACKAGE="" \
&& if [ "${PHP_VERSION}" != "8.5" ]; then \
&& if [ "$(printf '%s\n' "${PHP_VERSION}" 8.5 | sort -V | head -n 1)" != "8.5" ]; then \
OPCACHE_PACKAGE="php${PHP_VERSION}-opcache"; \
fi \
&& apt update \
Expand Down
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ blueprint: ## Generate all blueprints file
@if ! type orbit >/dev/null 2>&1; then echo "Missing orbit dependency, please install from https://github.com/gulien/orbit/"; exit 1; fi
orbit run generate

test-latest: test-8.5 ## Test the latest build only
test-latest: test-8.6 ## Test the latest build only

_test-prerequisites: blueprint
docker pull ubuntu:20.04
Expand All @@ -18,11 +18,12 @@ test-legacy-quick: ## Test 7.4, 8.0 and 8.1 quickly
VERSION=7.4 VARIANT=cli $(MAKE) _test-version-quick
VERSION=8.0 VARIANT=cli $(MAKE) _test-version-quick
VERSION=8.1 VARIANT=cli $(MAKE) _test-version-quick
test-quick: ## Test 8.2, 8.3, 8.4 and 8.5 quickly
test-quick: ## Test 8.2, 8.3, 8.4, 8.5 and 8.6 quickly
VERSION=8.2 VARIANT=cli $(MAKE) _test-version-quick
VERSION=8.3 VARIANT=cli $(MAKE) _test-version-quick
VERSION=8.4 VARIANT=cli $(MAKE) _test-version-quick
VERSION=8.5 VARIANT=cli $(MAKE) _test-version-quick
VERSION=8.6 VARIANT=cli $(MAKE) _test-version-quick

test-8.3: ## Test php8.3 build only
VERSION=8.3 VARIANT=cli $(MAKE) _test-version
Expand All @@ -39,6 +40,11 @@ test-8.1: ## Test php8.1 build only
VERSION=8.1 VARIANT=apache $(MAKE) _test-version
VERSION=8.1 VARIANT=fpm $(MAKE) _test-version

test-8.6: ## Test php8.6 build only
VERSION=8.6 VARIANT=cli $(MAKE) _test-version
VERSION=8.6 VARIANT=apache $(MAKE) _test-version
VERSION=8.6 VARIANT=fpm $(MAKE) _test-version

test-8.5: ## Test php8.5 build only
VERSION=8.5 VARIANT=cli $(MAKE) _test-version
VERSION=8.5 VARIANT=apache $(MAKE) _test-version
Expand Down Expand Up @@ -75,6 +81,9 @@ _test-version-quick: _test-prerequisites ## Test php build for VERSION="" and VA
PHP_VERSION="$(VERSION)" BRANCH=v5 VARIANT=$(VARIANT) ./tests-suite/bash_unit -f tap ./tests-suite/*.sh || (notify-send -u critical "Tests failed ($(VERSION)-$(VARIANT))" && exit 1)
notify-send -u critical "Tests passed with success ($(VERSION)-$(VARIANT)) - without node-*"

sury-extensions: ## Compare the extensions of VERSION with the sury packages (e.g. make sury-extensions VERSION=8.6)
utils/sury-extensions.sh $(VERSION)

clean: ## Clean dangles image after build
rm -rf /tmp/buildx-cache

Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ See the [documentation](#documentation) for all the features.

| Name | PHP version | type |variant | NodeJS version | Size
|-------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|--------|-----------------|------
| [thecodingmachine/php:8.6-v5-apache](Dockerfile.apache) | `8.6.x` | fat | apache | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache)
| [thecodingmachine/php:8.6-v5-apache-node22](Dockerfile.apache.node) | `8.6.x` | fat | apache | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache-node22)
| [thecodingmachine/php:8.6-v5-apache-node24](Dockerfile.apache.node) | `8.6.x` | fat | apache | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache-node24)
| [thecodingmachine/php:8.6-v5-apache-node26](Dockerfile.apache.node) | `8.6.x` | fat | apache | `26.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-apache-node26.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-apache-node26)
| [thecodingmachine/php:8.6-v5-fpm](Dockerfile.fpm) | `8.6.x` | fat | fpm | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm)
| [thecodingmachine/php:8.6-v5-fpm-node22](Dockerfile.fpm.node) | `8.6.x` | fat | fpm | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm-node22)
| [thecodingmachine/php:8.6-v5-fpm-node24](Dockerfile.fpm.node) | `8.6.x` | fat | fpm | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm-node24)
| [thecodingmachine/php:8.6-v5-fpm-node26](Dockerfile.fpm.node) | `8.6.x` | fat | fpm | `26.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-fpm-node26.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-fpm-node26)
| [thecodingmachine/php:8.6-v5-cli](Dockerfile.cli) | `8.6.x` | fat | cli | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli)
| [thecodingmachine/php:8.6-v5-cli-node22](Dockerfile.cli.node) | `8.6.x` | fat | cli | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli-node22)
| [thecodingmachine/php:8.6-v5-cli-node24](Dockerfile.cli.node) | `8.6.x` | fat | cli | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli-node24)
| [thecodingmachine/php:8.6-v5-cli-node26](Dockerfile.cli.node) | `8.6.x` | fat | cli | `26.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-cli-node26.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-cli-node26)
| [thecodingmachine/php:8.6-v5-slim-apache](Dockerfile.slim.apache) | `8.6.x` | slim | apache | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-slim-apache.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-slim-apache)
| [thecodingmachine/php:8.6-v5-slim-fpm](Dockerfile.slim.fpm) | `8.6.x` | slim | fpm | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-slim-fpm.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-slim-fpm)
| [thecodingmachine/php:8.6-v5-slim-cli](Dockerfile.slim.cli) | `8.6.x` | slim | cli | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.6-v5-slim-cli.svg)](https://microbadger.com/images/thecodingmachine/php:8.6-v5-slim-cli)
| [thecodingmachine/php:8.5-v5-apache](Dockerfile.apache) | `8.5.x` | fat | apache | *N/A* | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.5-v5-apache.svg)](https://microbadger.com/images/thecodingmachine/php:8.5-v5-apache)
| [thecodingmachine/php:8.5-v5-apache-node22](Dockerfile.apache.node) | `8.5.x` | fat | apache | `22.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.5-v5-apache-node22.svg)](https://microbadger.com/images/thecodingmachine/php:8.5-v5-apache-node22)
| [thecodingmachine/php:8.5-v5-apache-node24](Dockerfile.apache.node) | `8.5.x` | fat | apache | `24.x` | [![](https://images.microbadger.com/badges/image/thecodingmachine/php:8.5-v5-apache-node24.svg)](https://microbadger.com/images/thecodingmachine/php:8.5-v5-apache-node24)
Expand Down Expand Up @@ -126,6 +141,7 @@ Bugs are fixed on maintained versions only.

| PHP version | Status |
|-------------|-----------------------------------------------|
| 8.6 | Maintained (until 2030-12-31) |
| 8.5 | Maintained (until 2029-12-31) |
| 8.4 | Maintained (until 2028-12-31) |
| 8.3 | Maintained (until 2027-12-31) |
Expand Down
Loading