File tree 7 files changed +25
-25
lines changed
7 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,23 @@ jobs:
28
28
docker pull adhocore/phpfpm:8.2 || true
29
29
docker pull adhocore/phpfpm:8.3 || true
30
30
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
39
39
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
48
48
49
49
- name : " [8.1] Build and push"
50
50
id : docker_build_81
Original file line number Diff line number Diff line change 35
35
#
36
36
# php extensions
37
37
&& 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 \
39
39
&& pecl channel-update pecl.php.net \
40
40
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
41
41
&& docker-php-ext-install-if $PHP_EXTENSIONS \
Original file line number Diff line number Diff line change 13
13
COPY docker-* /usr/local/bin/
14
14
15
15
# 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/
18
18
19
19
# ext
20
20
COPY ext.php /ext.php
34
34
openldap-back-mdb tidyhtml yaml zlib \
35
35
#
36
36
# php extensions
37
- && echo 'php-extensions' && docker-php-source extract \
37
+ && docker-php-source extract \
38
38
&& docker-php-ext-remove intl || true \
39
39
&& pecl channel-update pecl.php.net \
40
40
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
Original file line number Diff line number Diff line change 37
37
#
38
38
# php extensions
39
39
&& docker-php-source extract \
40
- && docker-php-ext-remove intl \
40
+ && docker-php-ext-remove intl || true \
41
41
&& pecl channel-update pecl.php.net \
42
42
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
43
43
&& docker-php-ext-install-if $PHP_EXTENSIONS \
Original file line number Diff line number Diff line change 37
37
#
38
38
# php extensions
39
39
&& 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 \
41
41
&& pecl channel-update pecl.php.net \
42
42
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
43
43
&& docker-php-ext-install-if $PHP_EXTENSIONS \
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ usage() {
16
16
modules=
17
17
for module; do
18
18
[[ " $module " == " --help" ]] || [[ " $module " == " -h" ]] && usage >&2
19
- [[ -n " $modules " ]] && modules=" $modules $module " || modules=" $module "
19
+ [[ -n " $modules " ]] && modules=" $modules $module " || modules=" $module " || true
20
20
done
21
21
[[ " " = " $modules " ]] && exit 0
22
22
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ extDir=$(php -r 'echo ini_get("extension_dir");')
7
7
modules=$@
8
8
[[ " " = " $modules " ]] && exit 0
9
9
10
- docker-php-ext-disable $modules
10
+ docker-php-ext-disable $modules || true
11
11
for module; do
12
- rm -rf $extDir /$module $extDir /$module .so
12
+ rm -rf $extDir /$module $extDir /$module .so || true
13
13
done
You can’t perform that action at this time.
0 commit comments