Skip to content

Commit ff121a4

Browse files
committed
fix:add php 8.2 8.3
1 parent c35b967 commit ff121a4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php_version: ["7.4", "8.0", "8.1", "8.3", "8.4"]
10+
php_version: ["7.4", "8.0", "8.1", "8.2", "8.3"]
1111
service: ["php-fpm", "php-worker", "workspace"]
1212
steps:
1313
- uses: actions/checkout@v2

build-image.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ if [ -n "${PHP_VERSION}" ]; then
5555
replace="yes yes | pecl install swoole-4.8.10;";
5656
sed -i "s/^$search/^$replace/g" ./workspace/Dockerfile;
5757
fi
58+
59+
if [[ "${PHP_VERSION}" == "8.1" || "${PHP_VERSION}" == "8.2" || "${PHP_VERSION}" == "8.3" ]]; then
60+
search='pecl -q install swoole;';
61+
replace="yes yes | pecl install swoole-5.1.8;";
62+
sed -i "s/$search/$replace/g" ./workspace/Dockerfile;
63+
64+
search='pecl install swoole;';
65+
replace="yes yes | pecl install swoole-5.1.8;";
66+
sed -i "s/$search/$replace/g" ./php-fpm/Dockerfile;
67+
sed -i "s/$search/$replace/g" ./php-worker/Dockerfile;
68+
fi
5869

5970
# if [ "${PHP_VERSION}" == "7.4" ]; then
6071
# search='docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ ';

0 commit comments

Comments
 (0)