Skip to content

Commit bc65bd2

Browse files
committed
Dropping support for PHP 7.1
1 parent 1f30fea commit bc65bd2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+48
-93
lines changed

.github/workflows/workflow.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Docker PHP Images GitHub workflow
33
on:
44
pull_request:
55
branches:
6-
- 'v4-dev'
6+
- 'v4'
77
push:
88
branches:
9-
- 'v4-dev'
10-
# schedule:
11-
# - cron: '0 0 * * 0'
9+
- 'v4'
10+
schedule:
11+
- cron: '42 3 * * 0'
1212

1313
jobs:
1414
build_test_maybe_release:
@@ -39,12 +39,6 @@ jobs:
3939
php_version: '7.2'
4040
- variant: 'fpm'
4141
php_version: '7.2'
42-
- variant: 'cli'
43-
php_version: '7.1'
44-
- variant: 'apache'
45-
php_version: '7.1'
46-
- variant: 'fpm'
47-
php_version: '7.1'
4842
runs-on: ubuntu-latest
4943
steps:
5044
- name: Set up QEMU
@@ -54,22 +48,29 @@ jobs:
5448
- uses: actions/checkout@v1
5549
- name: Build and test
5650
run: |
57-
PHP_VERSION="${{ matrix.php_version }}" BRANCH="v4-dev" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
51+
PHP_VERSION="${{ matrix.php_version }}" BRANCH="v4" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
5852
docker images | grep thecodingmachine/php
59-
# - name: Login to DockerHub
60-
# # Merge ~ push.
61-
# if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
62-
# uses: docker/login-action@v1
63-
# with:
64-
# username: ${{ secrets.DOCKERHUB_USERNAME }}
65-
# password: ${{ secrets.DOCKERHUB_TOKEN }}
66-
# - name: Release
67-
# # Merge ~ push.
68-
# if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
69-
# run: |
70-
# BRANCH_VARIANT=`echo "${{ matrix.variant }}" | sed 's/\./-/g'`
71-
# docker push thecodingmachine/php:${{ matrix.php_version }}-v3-slim-${BRANCH_VARIANT}
72-
# docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}
73-
# docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}-node8
74-
# docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}-node10
75-
# docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}-node12
53+
- name: Login to DockerHub
54+
# Merge ~ push.
55+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
56+
uses: docker/login-action@v1
57+
with:
58+
username: ${{ secrets.DOCKERHUB_USERNAME }}
59+
password: ${{ secrets.DOCKERHUB_TOKEN }}
60+
- name: Release
61+
# Merge ~ push.
62+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
63+
run: |
64+
BRANCH_VARIANT=`echo "${{ matrix.variant }}" | sed 's/\./-/g'`
65+
docker push thecodingmachine/php:${{ matrix.php_version }}-v4-slim-${BRANCH_VARIANT}
66+
docker push thecodingmachine/php:${{ matrix.php_version }}-v4-${BRANCH_VARIANT}
67+
docker push thecodingmachine/php:${{ matrix.php_version }}-v4-${BRANCH_VARIANT}-node8
68+
docker push thecodingmachine/php:${{ matrix.php_version }}-v4-${BRANCH_VARIANT}-node10
69+
docker push thecodingmachine/php:${{ matrix.php_version }}-v4-${BRANCH_VARIANT}-node12
70+
# Let's also tag PHP patch releases
71+
PHP_PATCH_VERSION=`docker run --rm thecodingmachine/php:${{ matrix.php_version }}-v4-slim-${BRANCH_VARIANT} php -v | head -n1 | grep -P '\d+\.\d+\.\d+' -o`
72+
docker push -t thecodingmachine/php:${PHP_PATCH_VERSION}-v4-slim-${BRANCH_VARIANT} thecodingmachine/php:${PHP_VERSION}-v4-slim-${BRANCH_VARIANT}
73+
docker push -t thecodingmachine/php:${PHP_PATCH_VERSION}-v4-${BRANCH_VARIANT} thecodingmachine/php:${PHP_VERSION}-v4-${BRANCH_VARIANT}
74+
docker push -t thecodingmachine/php:${PHP_PATCH_VERSION}-v4-${BRANCH_VARIANT}-node10 thecodingmachine/php:${PHP_VERSION}-v4-${BRANCH_VARIANT}-node10
75+
docker push -t thecodingmachine/php:${PHP_PATCH_VERSION}-v4-${BRANCH_VARIANT}-node12 thecodingmachine/php:${PHP_VERSION}-v4-${BRANCH_VARIANT}-node12
76+
docker push -t thecodingmachine/php:${PHP_PATCH_VERSION}-v4-${BRANCH_VARIANT}-node14 thecodingmachine/php:${PHP_VERSION}-v4-${BRANCH_VARIANT}-node14

CHANGELOG.md

Lines changed: 1 addition & 0 deletions

Dockerfile.slim.fpm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ RUN ln -s /etc/php/${PHP_VERSION}/mods-available/generated_conf.ini /etc/php/${P
252252
sed -i 's/^group = www-data/;group = www-data/g' /etc/php/${PHP_VERSION}/fpm/pool.d/www.conf && \
253253
sed -i 's#listen = /run/php/php${PHP_VERSION}-fpm.sock#;listen = /run/php/php${PHP_VERSION}-fpm.sock#g' /etc/php/${PHP_VERSION}/fpm/pool.d/www.conf && \
254254
sed -i "s#pid = /run/php/php${PHP_VERSION}-fpm.pid#;pid = /run/php/php${PHP_VERSION}-fpm.pid#g" /etc/php/${PHP_VERSION}/fpm/php-fpm.conf && \
255-
if [ "$PHP_VERSION" = "7.1" ] || [ "$PHP_VERSION" = "7.2" ]; then \
255+
if [ "$PHP_VERSION" = "7.2" ]; then \
256256
sed -i 's/^log_limit =/;log_limit =/g' /etc/php/${PHP_VERSION}/fpm/pool.d/docker.conf && \
257257
sed -i 's/^decorate_workers_output =/;decorate_workers_output =/g' /etc/php/${PHP_VERSION}/fpm/pool.d/docker.conf; \
258258
fi

README.md

Lines changed: 15 additions & 15 deletions

extensions/7.1/amqp

Lines changed: 0 additions & 1 deletion
This file was deleted.

extensions/7.1/apcu

Lines changed: 0 additions & 1 deletion
This file was deleted.

extensions/7.1/ast

Lines changed: 0 additions & 1 deletion
This file was deleted.

extensions/7.1/bcmath

Lines changed: 0 additions & 1 deletion
This file was deleted.

extensions/7.1/blackfire

Lines changed: 0 additions & 1 deletion
This file was deleted.

extensions/7.1/bz2

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)