Skip to content

Commit 49d8ba2

Browse files
committed
feat: 支持 php8.4, 基础镜像升级为 ubuntu 24.04
1 parent 87319b9 commit 49d8ba2

File tree

6 files changed

+36
-17
lines changed

6 files changed

+36
-17
lines changed

.github/workflows/build-push.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ on:
1010
type: string
1111
nginx:
1212
description: "nginx version"
13-
default: "1.24.0"
13+
default: "1.26.2"
1414
required: true
1515
type: string
16+
php84:
17+
description: "php8.4 image. e.g: 8.4.010"
18+
default: ""
19+
type: string
1620
php83:
1721
description: "php8.3 image. e.g: 8.3.000"
1822
default: ""
@@ -32,8 +36,10 @@ jobs:
3236
strategy:
3337
matrix:
3438
nginx: ["${{ inputs.nginx }}"]
35-
php: ["8.3", "8.2", "8.1"]
39+
php: ["8.4", "8.3", "8.2", "8.1"]
3640
include:
41+
- php: "8.4"
42+
tag: ${{ inputs.php84 }}
3743
- php: "8.3"
3844
tag: ${{ inputs.php83 }}
3945
- php: "8.2"
@@ -66,7 +72,7 @@ jobs:
6672
IFS=' ' read -ra IMAGE <<< "$IMAGES"
6773
for element in "${IMAGE[@]}"; do
6874
LAT_VER=''
69-
if [[ "${{ matrix.php }}" == "8.3" ]]; then
75+
if [[ "${{ matrix.php }}" == "8.4" ]]; then
7076
LAT_VER="${element}:latest,"
7177
fi
7278
PRE_VER="${element}:${{ matrix.php }},"
@@ -106,7 +112,7 @@ jobs:
106112
uses: docker/setup-buildx-action@v3
107113
if: steps.meta.outputs.IMAGE_TAGS != ''
108114
- name: Build and push
109-
uses: docker/build-push-action@v5
115+
uses: docker/build-push-action@v6
110116
if: steps.meta.outputs.IMAGE_TAGS != ''
111117
with:
112118
platforms: ${{ inputs.platforms }}

.github/workflows/test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ on:
1010
type: string
1111
nginx:
1212
description: "nginx version"
13-
default: "1.24.0"
13+
default: "1.26.2"
1414
required: true
1515
type: string
16+
php84:
17+
description: "e.g: 8.4.010"
18+
default: ""
19+
type: string
1620
php83:
1721
description: "e.g: 8.3.000"
1822
default: ""
@@ -32,8 +36,10 @@ jobs:
3236
strategy:
3337
matrix:
3438
nginx: ["${{ inputs.nginx }}"]
35-
php: ["8.3", "8.2", "8.1"]
39+
php: ["8.4", "8.3", "8.2", "8.1"]
3640
include:
41+
- php: "8.4"
42+
tag: ${{ inputs.php84 }}
3743
- php: "8.3"
3844
tag: ${{ inputs.php83 }}
3945
- php: "8.2"
@@ -72,7 +78,7 @@ jobs:
7278
IFS=' ' read -ra IMAGE <<< "$IMAGES"
7379
for element in "${IMAGE[@]}"; do
7480
LAT_VER=''
75-
if [[ "${{ matrix.php }}" == "8.3" ]]; then
81+
if [[ "${{ matrix.php }}" == "8.4" ]]; then
7682
LAT_VER="${element}:latest,"
7783
fi
7884
PRE_VER="${element}:${{ matrix.php }},"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
- Since [46fa6a0](https://github.com/jetsung/docker-nginx-php/tree/46fa6a0f2621a4369e3f369ce165383a81115b61)
44

5+
---
6+
Associated tags: `8.2.270, 8.3.150, 8.4.010`
7+
8+
Base: `ubuntu:24.04`
9+
510
---
611

712
## 2022.01.22

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:24.04
22
LABEL maintainer="Jetsung Chan<jetsungchan@gmail.com>"
3-
ARG NGINX_VERSION=1.21.5
4-
ARG PHP_VERSION=8.1.0
3+
ARG NGINX_VERSION=1.26.2
4+
ARG PHP_VERSION=8.4.1
55
ENV NGX_WWW_ROOT /data/wwwroot
66
ENV NGX_LOG_ROOT /data/wwwlogs
77
ENV TMP /tmp/nginx-php/
8-
ENV DEBIAN_FRONTEND=noninteractive
8+
ENV DEBIAN_FRONTEND noninteractive
99
RUN mkdir -p /data/{wwwroot,wwwlogs,}
1010
RUN set -eux \
1111
; \
@@ -27,18 +27,18 @@ RUN set -eux \
2727
curl \
2828
supervisor ; \
2929
mkdir -p "${TMP}" && cd "${TMP}" ; \
30-
curl -Lk --retry 3 "https://github.com/kkos/oniguruma/releases/download/v6.9.7.1/onig-6.9.7.1.tar.gz" | gunzip | tar x \
30+
curl -Lk --retry 3 "https://github.com/kkos/oniguruma/releases/download/v6.9.9/onig-6.9.9.tar.gz" | gunzip | tar x \
3131
; \
3232
# curl -Lk --retry 3 "https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18.tar.gz" | gunzip | tar x \
3333
# curl -Lk --retry 3 "https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz" | gunzip | tar x \
3434
# ; \
35-
curl -Lk --retry 3 https://pecl.php.net/get/redis-5.3.7.tgz | gunzip | tar x \
35+
curl -Lk --retry 3 https://pecl.php.net/get/redis-6.1.0.tgz | gunzip | tar x \
3636
; \
3737
curl -Lk --retry 3 "https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" | gunzip | tar x \
3838
; \
3939
curl -Lk --retry 3 "https://php.net/distributions/php-${PHP_VERSION}.tar.gz" | gunzip | tar x \
4040
; \
41-
cd onig-6.9.7 ; \
41+
cd onig-6.9.9 ; \
4242
./configure --prefix=/usr ; \
4343
make && make install ; \
4444
# cd .. ; \
@@ -109,7 +109,7 @@ RUN set -eux \
109109
mv composer.phar /usr/local/bin/composer ; \
110110
chmod +x /usr/local/bin/composer ; \
111111
EXTENSION_DIR=$(php-config --extension-dir) ; \
112-
cd redis-5.3.7 ; \
112+
cd redis-6.1.0 ; \
113113
phpize ; \
114114
./configure --with-php-config=/usr/local/php/bin/php-config ; \
115115
make && make install ; \

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ English | [简体中文](./README_CN.md)
66

77
| Name | Version | Docker tag |
88
| :------ | :------ | :----------: |
9-
| **PHP** | 8.3.x | latest / 8.3 |
9+
| **PHP** | 8.4.x | latest / 8.4 |
10+
| **PHP** | 8.3.x | 8.3 |
1011
| **PHP** | 8.2.x | 8.2 |
1112
| **PHP** | 8.1.x | 8.1 |
1213

README_CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
| 名称 | 版本 | Docker 标签 |
88
| :------ | :---- | :----------: |
9-
| **PHP** | 8.3.x | latest / 8.3 |
9+
| **PHP** | 8.4.x | latest / 8.4 |
10+
| **PHP** | 8.3.x | 8.3 |
1011
| **PHP** | 8.2.x | 8.2 |
1112
| **PHP** | 8.1.x | 8.1 |
1213

0 commit comments

Comments
 (0)