Skip to content

Commit 968c71f

Browse files
Support to PHP 8.4, Arm64 and updated Alpine version (#141)
* Added support to PHP 8.4 and moved PHP 8.3 to stable * Run Actions * fix for imagemagick * fix for imagemagick * added support to arm64 * removed 8.1 --------- Co-authored-by: Felipe Hertzer <[email protected]>
1 parent acc90b3 commit 968c71f

File tree

6 files changed

+32
-23
lines changed

6 files changed

+32
-23
lines changed

β€Ž.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
version: 2
22
updates:
33
- package-ecosystem: "docker"
4-
directory: "/8.1"
4+
directory: "/8.2"
55
schedule:
66
interval: "daily"
77
ignore:
88
- dependency-name: "*"
99
update-types: ["version-update:semver-major"]
1010

1111
- package-ecosystem: "docker"
12-
directory: "/8.2"
12+
directory: "/8.3"
1313
schedule:
1414
interval: "daily"
1515
ignore:
1616
- dependency-name: "*"
1717
update-types: ["version-update:semver-major"]
1818

1919
- package-ecosystem: "docker"
20-
directory: "/8.3"
20+
directory: "/8.4"
2121
schedule:
2222
interval: "daily"
2323
ignore:

β€Ž.github/workflows/packages.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
matrix:
1717
include:
1818
- tag: "latest"
19-
php: "8.3"
19+
php: "8.4"
2020
- tag: "stable"
21-
php: "8.2"
21+
php: "8.3"
22+
- tag: "8.4"
23+
php: "8.4"
2224
- tag: "8.3"
2325
php: "8.3"
2426
- tag: "8.2"
2527
php: "8.2"
26-
- tag: "8.1"
27-
php: "8.1"
2828

2929
steps:
3030
- uses: actions/checkout@v3
@@ -42,12 +42,21 @@ jobs:
4242
username: ${{ secrets.DOCKERHUB_USERNAME }}
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
4444

45+
- name: Setup QEMU for multi-platform builds
46+
uses: docker/setup-qemu-action@v2
47+
with:
48+
platforms: linux/amd64,linux/arm64
49+
50+
- name: Setup Docker Buildx
51+
uses: docker/setup-buildx-action@v2
52+
4553
- name: Build and push
4654
id: docker_build
4755
uses: docker/build-push-action@v3
4856
with:
4957
push: true
5058
context: ${{ matrix.php }}
59+
platforms: linux/amd64,linux/arm64
5160
tags: |
5261
ghcr.io/${{ env.IMAGE }}:${{ matrix.tag }}
5362
${{ env.IMAGE }}:${{ matrix.tag }}

β€Ž8.2/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.2-alpine3.17
1+
FROM php:8.2-alpine3.21
22

33
# Add docker-php-extension-installer script
44
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
@@ -32,8 +32,8 @@ RUN chmod +x /usr/local/bin/install-php-extensions && \
3232
install-php-extensions \
3333
@composer \
3434
redis-stable \
35-
imagick-stable \
36-
xdebug-stable \
35+
imagick \
36+
xdebug \
3737
bcmath \
3838
calendar \
3939
exif \

β€Ž8.3/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.3-alpine3.17
1+
FROM php:8.3-alpine3.21
22

33
# Add docker-php-extension-installer script
44
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
@@ -32,8 +32,8 @@ RUN chmod +x /usr/local/bin/install-php-extensions && \
3232
install-php-extensions \
3333
@composer \
3434
redis-stable \
35-
imagick-stable \
36-
xdebug-beta \
35+
imagick \
36+
xdebug \
3737
bcmath \
3838
calendar \
3939
exif \

β€Ž8.1/Dockerfile renamed to β€Ž8.4/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-alpine3.15
1+
FROM php:8.4-alpine3.21
22

33
# Add docker-php-extension-installer script
44
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
@@ -32,8 +32,8 @@ RUN chmod +x /usr/local/bin/install-php-extensions && \
3232
install-php-extensions \
3333
@composer \
3434
redis-stable \
35-
imagick-stable \
36-
xdebug-stable \
35+
imagick \
36+
xdebug \
3737
bcmath \
3838
calendar \
3939
exif \

β€ŽREADME.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
[![Docker Badge](https://img.shields.io/docker/pulls/lorisleiva/laravel-docker)](https://hub.docker.com/r/lorisleiva/laravel-docker/)
66

7-
| Tags | PHP version | Features |
8-
| ------ | ----------- | --------------------------------------------------------------------------------------------------------------- |
9-
| 8.1 | 8.1 | βœ… Everything. |
10-
| 8.2 | 8.2 | βœ… Everything. |
11-
| 8.3 | 8.3 | ⚠️ Everything but using `xdebug-beta` instead of `xdebug-stable`. |
12-
| stable | **8.2** | πŸ”— Aliases the latest stable version of PHP that supports all features of this docker image. |
13-
| latest | **8.3** | πŸ”— Aliases the latest stable version of PHP available (even if that version does not support all features yet). |
7+
| Tags | PHP version | Architecture | Features |
8+
|--------|-------------|-------------|-----------------------------------------------------------------------------------------------------------------|
9+
| 8.2 | 8.2 | amd64/arm64 | βœ… Everything. |
10+
| 8.3 | 8.3 | amd64/arm64 | βœ… Everything. |
11+
| 8.4 | 8.4 | amd64/arm64 | βœ… Everything. |
12+
| stable | **8.3** | amd64/arm64 | πŸ”— Aliases the latest stable version of PHP that supports all features of this docker image. |
13+
| latest | **8.4** | amd64/arm64 | πŸ”— Aliases the latest stable version of PHP available (even if that version does not support all features yet). |
1414

1515
#### Use within your GitLab's pipelines.
1616

0 commit comments

Comments
Β (0)