Skip to content

Commit 7bb2b71

Browse files
authored
Merge pull request #24 from ToshY/feature/23-php-85
add php 8.5 support
2 parents dbe4058 + 0077ef1 commit 7bb2b71

File tree

6 files changed

+30
-26
lines changed

6 files changed

+30
-26
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
- '8.2'
2121
- '8.3'
2222
- '8.4'
23+
- '8.5'
2324
force:
2425
type: choice
2526
description: 'Force recreate images'
@@ -30,7 +31,7 @@ on:
3031
- 'false'
3132

3233
env:
33-
PHP_VERSIONS: '8.1,8.2,8.3,8.4'
34+
PHP_VERSIONS: '8.1,8.2,8.3,8.4,8.5'
3435
GHCR_SLUG: ghcr.io/toshy/php
3536

3637
jobs:

.github/workflows/security.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ jobs:
1515
- ghcr.io/toshy/php:8.1-fpm-bookworm
1616
- ghcr.io/toshy/php:8.2-fpm-bookworm
1717
- ghcr.io/toshy/php:8.3-fpm-bookworm
18-
- ghcr.io/toshy/php:fpm-bookworm
18+
- ghcr.io/toshy/php:8.4-fpm-bookworm
19+
- ghcr.io/toshy/php:fpm-trixie
1920
- ghcr.io/toshy/php:8.1-fpm-bookworm-ffmpeg
2021
- ghcr.io/toshy/php:8.2-fpm-bookworm-ffmpeg
2122
- ghcr.io/toshy/php:8.3-fpm-bookworm-ffmpeg
22-
- ghcr.io/toshy/php:fpm-bookworm-ffmpeg
23+
- ghcr.io/toshy/php:8.4-fpm-bookworm-ffmpeg
24+
- ghcr.io/toshy/php:fpm-trixie-ffmpeg
2325
- ghcr.io/toshy/php:8.1-fpm-bookworm-otel
2426
- ghcr.io/toshy/php:8.2-fpm-bookworm-otel
2527
- ghcr.io/toshy/php:8.3-fpm-bookworm-otel
26-
- ghcr.io/toshy/php:fpm-bookworm-otel
28+
- ghcr.io/toshy/php:8.4-fpm-bookworm-otel
29+
- ghcr.io/toshy/php:fpm-trixie-otel
2730
steps:
2831
- name: Scan for vulnerabilities
2932
uses: crazy-max/ghaction-container-scan@v3

Taskfile.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ tasks:
3232
summary: |
3333
Example:
3434
35-
task act:push:version pv="8.4.10"
35+
task act:push:version pv="8.5.0"
3636
vars:
37-
PHP_VERSIONS: '{{ .pv | default "8.4.10"}}'
37+
PHP_VERSIONS: '{{ .pv | default "8.5.0"}}'
3838
cmds:
3939
- act push --input version={{.PHP_VERSIONS}}
4040

@@ -57,14 +57,14 @@ tasks:
5757
bake:
5858
desc: Bake
5959
vars:
60-
PHP_VERSIONS: '{{ .pv | default "8.1.33,8.2.29,8.3.25,8.4.12"}}'
60+
PHP_VERSIONS: '{{ .pv | default "8.1.33,8.2.29,8.3.28,8.4.15,8.5.0"}}'
6161
cmds:
6262
- PHP_VERSIONS={{.PHP_VERSIONS}} docker buildx bake --set *.platform=linux/amd64
6363

6464
bake:print:
6565
desc: Bake print options without building
6666
vars:
67-
PHP_VERSIONS: '{{ .pv | default "8.1.33,8.2.29,8.3.25,8.4.12"}}'
67+
PHP_VERSIONS: '{{ .pv | default "8.1.33,8.2.29,8.3.28,8.4.15,8.5.0"}}'
6868
cmds:
6969
- PHP_VERSIONS={{.PHP_VERSIONS}} docker buildx bake --print | $JQ
7070

@@ -73,12 +73,12 @@ tasks:
7373
desc: Trivy
7474
vars:
7575
TRIVY_VERSION: '{{ .tv | default "latest" }}'
76-
PHP_BASE: '{{ .pv | default "8.4.12-fpm-bookworm"}}'
76+
PHP_BASE: '{{ .pv | default "8.5.0-fpm-trixie"}}'
7777
TARGET: '{{ .t | default "ffmpeg" }}'
7878
cmds:
7979
- |
8080
docker build \
81-
--build-context php-base=docker-image://php:8.4.12-fpm-bookworm \
81+
--build-context php-base=docker-image://php:{{.PHP_BASE}} \
8282
--target {{.TARGET}} \
8383
-t toshy/trivy:{{.PHP_BASE}} .
8484
- |

docker-bake.hcl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ variable "VERSION" {
1313
}
1414

1515
variable "PHP_VERSIONS" {
16-
default = "8.1,8.2,8.3,8.4"
16+
default = "8.1,8.2,8.3,8.4,8.5"
1717
}
1818

1919
variable "DEFAULT_PHP_VERSION" {
20-
default = "8.4"
20+
default = "8.5"
2121
}
2222

2323
variable "DEFAULT_FLAVOR" {
@@ -38,16 +38,16 @@ variable "PHP_OS_MAP" {
3838
"8.2" = "bookworm"
3939
"8.3" = "bookworm"
4040
"8.4" = "bookworm"
41-
"8.5" = "bookworm"
41+
"8.5" = "trixie"
4242
}
4343
}
4444

4545
variable "FLAVOR_OS_MAP" {
4646
default = {
47-
"cli" = "bookworm,alpine"
48-
"apache" = "bookworm" # apache flavor has no alpine os image
49-
"fpm" = "bookworm,alpine"
50-
"zts" = "bookworm,alpine"
47+
"cli" = "bookworm,trixie,alpine"
48+
"apache" = "bookworm,trixie" # apache flavor has no alpine os image
49+
"fpm" = "bookworm,trixie,alpine"
50+
"zts" = "bookworm,trixie,alpine"
5151
}
5252
}
5353

docs/images.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ unzip
4949

5050
!!!tip "Container"
5151
```shell
52-
ghcr.io/toshy/php:8.4-fpm-bookworm
52+
ghcr.io/toshy/php:8.5-fpm-trixie
5353
```
5454

5555
### FFmpeg
@@ -64,7 +64,7 @@ libimage-exiftool-perl
6464

6565
!!!tip "Container suffixed with `-ffmpeg`"
6666
```shell
67-
ghcr.io/toshy/php:8.4-fpm-bookworm-ffmpeg
67+
ghcr.io/toshy/php:8.5-fpm-trixie-ffmpeg
6868
```
6969

7070
!!! info
@@ -87,7 +87,7 @@ protobuf
8787

8888
!!!tip "Container suffixed with `-otel`"
8989
```shell
90-
ghcr.io/toshy/php:8.4-fpm-bookworm-otel
90+
ghcr.io/toshy/php:8.5-fpm-trixie-otel
9191
```
9292

9393
!!! info

docs/usage.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ All images can be pulled from [ghcr.io/toshy/php](https://ghcr.io/toshy/php).
77
Run a container.
88

99
```shell
10-
docker run --rm -it ghcr.io/toshy/php:8.4-cli-bookworm
10+
docker run --rm -it ghcr.io/toshy/php:8.5-cli-trixie
1111
```
1212

1313
### :simple-docker: Dockerfile
1414

1515
Extend an image.
1616

1717
```Dockerfile
18-
FROM ghcr.io/toshy/php:8.4-fpm-bookworm
18+
FROM ghcr.io/toshy/php:8.5-fpm-trixie
1919
```
2020

2121
### :simple-docker: Compose
@@ -25,7 +25,7 @@ Use as a compose service.
2525
```yaml
2626
services:
2727
php:
28-
image: ghcr.io/toshy/php:8.4-fpm-bookworm
28+
image: ghcr.io/toshy/php:8.5-fpm-trixie
2929
```
3030
3131
## :octicons-container-24: Flavors, versions and OS
@@ -35,12 +35,12 @@ services:
3535
ghcr.io/toshy/php:<version>-<flavor>-<os>(-<target>)
3636
```
3737

38-
- Contains the following PHP versions: `8.1`, `8.2`, `8.3`, `8.4`.
38+
- Contains the following PHP versions: `8.1`, `8.2`, `8.3`, `8.4`, `8.5`.
3939
- Contains the following flavors: `cli`, `fpm`, `apache`, `zts`
40-
- Contains the following OS: `bookworm`.
40+
- Contains the following OS: `bookworm`, `trixie`.
4141
- Contains the following [targets](images.md#targets): `base`, `ffmpeg`, `otel`.
4242

4343
!!!question
4444

45-
- The `8.4` version is the default version (also tagged as `latest`).
45+
- The `8.5` version is the default version (also tagged as `latest`).
4646
- The `base` target is the default image and does not have a `target` suffix.

0 commit comments

Comments
 (0)