mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2026-11-13 08:37:16 +00:00
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.
18 lines
638 B
Bash
Executable File
18 lines
638 B
Bash
Executable File
#!/bin/bash
|
|
# 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 ${tag}"
|
|
docker build --build-arg phpVersion="${version}" -f src/docker/Dockerfile -t "jkaninda/nginx-php-fpm:${tag}" .
|
|
fi
|