Modernize images and move PHP 8.1 to legacy
Tests / integration (8.2, alpine) (push) Canceled after 0s
Tests / integration (8.2, debian) (push) Canceled after 0s
Tests / integration (8.3, alpine) (push) Canceled after 0s
Tests / integration (8.3, debian) (push) Canceled after 0s
Tests / integration (8.4, alpine) (push) Canceled after 0s
Tests / integration (8.4, debian) (push) Canceled after 0s
Tests / integration (8.5, alpine) (push) Canceled after 0s
Tests / integration (8.5, debian) (push) Canceled after 0s

PHP 8.1 is end-of-life. It is dropped from the default build and test
matrices. 8.1 and 8.1-alpine are still built, multi-arch, by the
manual legacy job (workflow_dispatch with legacy=true), together with
7.2, 7.3, 7.4 and 8.0. This replaces manual-build.yml.
This commit is contained in:
jkaninda committed 2026-10-22 05:30:34 +02:00
1 parent c602e1a0ad
commit 5abd5bc076
24 files changed
+857 -595

No files matched your search

+14 -14
View File
@@ -1,17 +1,17 @@
#!/bin/bash
if [ $# -eq 0 ]
then
tag='latest'
else
tag=$1
fi
if [ $tag != 'latest' ]
then
echo 'Build from tag'
docker build -f src/docker/${tag}/Dockerfile -t jkaninda/nginx-php-fpm:$tag .
# Usage: ./build.sh [php-version] (default: 8.5)
# ./build.sh 8.4-alpine
set -e
tag=${1:-8.5}
version=${tag%-alpine}
if [ -f "src/docker/${version}/Dockerfile" ]; then
echo "Build legacy image ${tag}"
docker build -f "src/docker/${version}/Dockerfile" -t "jkaninda/nginx-php-fpm:${tag}" .
elif [ "${tag}" != "${version}" ]; then
echo "Build ${tag}"
docker build --build-arg phpVersion="${version}" -f src/docker/Dockerfile.alpine -t "jkaninda/nginx-php-fpm:${tag}" .
else
echo 'Build latest'
docker build -f src/docker/8.3/Dockerfile -t jkaninda/nginx-php-fpm:$tag .
echo "Build ${tag}"
docker build --build-arg phpVersion="${version}" -f src/docker/Dockerfile -t "jkaninda/nginx-php-fpm:${tag}" .
fi
docker compose up -d --force-recreate