Skip to content

Commit 57863b5

Browse files
committed
chore: restore
1 parent 97d6507 commit 57863b5

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

.github/workflows/build.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ jobs:
2828
docker pull adhocore/phpfpm:8.2 || true
2929
docker pull adhocore/phpfpm:8.3 || true
3030
31-
# - name: "[8.3] Build and push"
32-
# id: docker_build_83
33-
# uses: docker/build-push-action@v4
34-
# with:
35-
# push: true
36-
# file: 8.3.Dockerfile
37-
# tags: adhocore/phpfpm:8.3,adhocore/phpfpm:latest
38-
# platforms: linux/amd64,linux/arm64
31+
- name: "[8.3] Build and push"
32+
id: docker_build_83
33+
uses: docker/build-push-action@v4
34+
with:
35+
push: true
36+
file: 8.3.Dockerfile
37+
tags: adhocore/phpfpm:8.3,adhocore/phpfpm:latest
38+
platforms: linux/amd64,linux/arm64
3939

40-
# - name: "[8.2] Build and push"
41-
# id: docker_build_82
42-
# uses: docker/build-push-action@v4
43-
# with:
44-
# push: true
45-
# file: 8.2.Dockerfile
46-
# tags: adhocore/phpfpm:8.2
47-
# platforms: linux/amd64,linux/arm64
40+
- name: "[8.2] Build and push"
41+
id: docker_build_82
42+
uses: docker/build-push-action@v4
43+
with:
44+
push: true
45+
file: 8.2.Dockerfile
46+
tags: adhocore/phpfpm:8.2
47+
platforms: linux/amd64,linux/arm64
4848

4949
- name: "[8.1] Build and push"
5050
id: docker_build_81

8.0.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN \
3535
#
3636
# php extensions
3737
&& docker-php-source extract \
38-
# && rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20200930/intl.so /usr/local/etc/php/conf.d/docker-php-ext-intl.ini \
38+
&& docker-php-ext-remove intl || true \
3939
&& pecl channel-update pecl.php.net \
4040
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
4141
&& docker-php-ext-install-if $PHP_EXTENSIONS \

8.1.Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ENV \
1313
COPY docker-* /usr/local/bin/
1414

1515
# copy from existing
16-
# COPY --from=adhocore/phpfpm:8.1 /usr/local/lib/php/extensions/no-debug-non-zts-20210902/*.so /usr/local/lib/php/extensions/no-debug-non-zts-20210902/
17-
# COPY --from=adhocore/phpfpm:8.1 /usr/local/etc/php/conf.d/*.ini /usr/local/etc/php/conf.d/
16+
COPY --from=adhocore/phpfpm:8.1 /usr/local/lib/php/extensions/no-debug-non-zts-20210902/*.so /usr/local/lib/php/extensions/no-debug-non-zts-20210902/
17+
COPY --from=adhocore/phpfpm:8.1 /usr/local/etc/php/conf.d/*.ini /usr/local/etc/php/conf.d/
1818

1919
# ext
2020
COPY ext.php /ext.php
@@ -34,7 +34,7 @@ RUN \
3434
openldap-back-mdb tidyhtml yaml zlib \
3535
#
3636
# php extensions
37-
&& echo 'php-extensions' && docker-php-source extract \
37+
&& docker-php-source extract \
3838
&& docker-php-ext-remove intl || true \
3939
&& pecl channel-update pecl.php.net \
4040
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \

8.2.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN \
3737
#
3838
# php extensions
3939
&& docker-php-source extract \
40-
&& docker-php-ext-remove intl \
40+
&& docker-php-ext-remove intl || true \
4141
&& pecl channel-update pecl.php.net \
4242
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
4343
&& docker-php-ext-install-if $PHP_EXTENSIONS \

8.3.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN \
3737
#
3838
# php extensions
3939
&& docker-php-source extract \
40-
&& rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20220829/intl.so /usr/local/etc/php/conf.d/docker-php-ext-intl.ini \
40+
&& docker-php-ext-remove intl || true \
4141
&& pecl channel-update pecl.php.net \
4242
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
4343
&& docker-php-ext-install-if $PHP_EXTENSIONS \

docker-pecl-ext-install

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ usage() {
1616
modules=
1717
for module; do
1818
[[ "$module" == "--help" ]] || [[ "$module" == "-h" ]] && usage >&2
19-
[[ -n "$modules" ]] && modules="$modules $module" || modules="$module"
19+
[[ -n "$modules" ]] && modules="$modules $module" || modules="$module" || true
2020
done
2121
[[ "" = "$modules" ]] && exit 0
2222

docker-php-ext-remove

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extDir=$(php -r 'echo ini_get("extension_dir");')
77
modules=$@
88
[[ "" = "$modules" ]] && exit 0
99

10-
docker-php-ext-disable $modules
10+
docker-php-ext-disable $modules || true
1111
for module; do
12-
rm -rf $extDir/$module $extDir/$module.so
12+
rm -rf $extDir/$module $extDir/$module.so || true
1313
done

0 commit comments

Comments
 (0)