Skip to content

Commit 700f0e3

Browse files
committed
More versions, plus alpine tags
1 parent b28ea7a commit 700f0e3

File tree

3 files changed

+39
-6
lines changed

3 files changed

+39
-6
lines changed

.github/workflows/docker-hub.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ jobs:
1212
include:
1313
- { php: "7.1.33", os: "3.10" }
1414
- { php: "7.2.34", os: "3.12" }
15-
- { php: "7.3.29", os: "3.14" }
15+
- { php: "7.3.33", os: "3.14" }
1616
- { php: "7.4.22", os: "3.14" }
17+
- { php: "7.4.33", os: "3.16" }
1718
- { php: "8.0.19", os: "3.14" }
19+
- { php: "8.0.30", os: "3.16" }
1820
- { php: "8.1.16", os: "3.16" }
21+
- { php: "8.1.27", os: "3.18" }
1922
- { php: "8.2.3", os: "3.16" }
23+
- { php: "8.2.14", os: "3.18" }
24+
- { php: "8.3.1", os: "3.18" }
2025

2126
steps:
2227
# Use metadata action to get `major.minor` PHP version
@@ -37,13 +42,30 @@ jobs:
3742
flavor: 'latest=false'
3843
tags: |
3944
type=semver,pattern=${{ matrix.php }}-{{version}}
45+
type=semver,pattern=${{ matrix.php }}-{{version}}-alpine${{ matrix.os }}
4046
type=semver,pattern=${{ matrix.php }}-{{major}}.{{minor}}.x
47+
type=semver,pattern=${{ matrix.php }}-{{major}}.{{minor}}.x-alpine${{ matrix.os }}
4148
type=semver,pattern=${{ matrix.php }}-{{major}}.x
49+
type=semver,pattern=${{ matrix.php }}-{{major}}.x-alpine${{ matrix.os }}
4250
type=raw,value=${{ matrix.php }}
51+
type=raw,value=${{ matrix.php }}-alpine${{ matrix.os }}
4352
type=semver,pattern=${{ steps.phpver.outputs.version }}-{{version}}
53+
type=semver,pattern=${{ steps.phpver.outputs.version }}-{{version}}-alpine${{ matrix.os }}
4454
type=semver,pattern=${{ steps.phpver.outputs.version }}-{{major}}.{{minor}}.x
55+
type=semver,pattern=${{ steps.phpver.outputs.version }}-{{major}}.{{minor}}.x-alpine${{ matrix.os }}
4556
type=semver,pattern=${{ steps.phpver.outputs.version }}-{{major}}.x
57+
type=semver,pattern=${{ steps.phpver.outputs.version }}-{{major}}.x-alpine${{ matrix.os }}
4658
type=raw,value=${{ steps.phpver.outputs.version }}
59+
type=raw,value=${{ steps.phpver.outputs.version }}-alpine${{ matrix.os }}
60+
61+
- name: Checkout
62+
uses: actions/checkout@v3
63+
64+
- name: Set up QEMU
65+
uses: docker/setup-qemu-action@v2
66+
67+
- name: Set up Docker Buildx
68+
uses: docker/setup-buildx-action@v3
4769

4870
- name: Login to DockerHub
4971
uses: docker/login-action@v2
@@ -53,8 +75,9 @@ jobs:
5375

5476
- name: Build and push
5577
id: build
56-
uses: docker/build-push-action@v4
78+
uses: docker/build-push-action@v5
5779
with:
80+
context: .
5881
push: true
5982
tags: ${{ steps.meta.outputs.tags }}
6083
build-args: |

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# -------- Copy stuff from base images
2-
ARG PHP_VER=8.0.7
3-
ARG OS_VER=3.12
2+
ARG PHP_VER=8.3.14
3+
ARG OS_VER=3.18
44
FROM php:$PHP_VER-fpm-alpine$OS_VER
55

66
# -------- Add packages and build/install tools
77

8-
COPY --from=mlocati/php-extension-installer:1.2.50 /usr/bin/install-php-extensions /usr/bin/
8+
COPY --from=mlocati/php-extension-installer:2.1.75 /usr/bin/install-php-extensions /usr/bin/
99
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
1010
RUN apk --no-cache add \
1111
--repository http://dl-3.alpinelinux.org/alpine/edge/community \
@@ -42,7 +42,7 @@ VOLUME /etc/letsencrypt
4242
EXPOSE 443 80
4343
CMD ["/usr/bin/start-container"]
4444

45-
COPY --from=bashitup/alpine-tools:latest \
45+
COPY --from=ghcr.io/bashup/alpine-tools:latest \
4646
/bin/dockerize /bin/yaml2json /bin/modd /bin/jq /bin/webhook /usr/bin/
4747
COPY scripts/install-extras scripts/composer-global /usr/bin/
4848

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ Also note that although you *can* just specify a PHP version, major releases of
311311

312312
### Major Versions
313313

314+
* 3.1.x - Added 8.3 and newer versions of 7.4-8.2, added `-alpine3.x` tags so you can distinguish by OS version (e.g. `8.0-alpine3.16` vs `8.0-alpine3.18`).
314315
* 3.x - Alpine 3.10-3.16, Composer 2, PHP 7.1 through 8.2, dropped prestissimo from default `GLOBAL_REQUIRE`, added `--optimize-autoloader` to default `COMPOSER_OPTIONS`
315316
* 2.x - Alpine 3.9, Composer 1, PHP 7.1 through 7.3, build extensions using [mlocati/docker-php-extension-installer](https://github.com/mlocati/docker-php-extension-installer)
316317
* 1.4.x - Alpine 3.9, Composer 1, PHP 7.1 and 7.2, image based on Docker php-fpm-alpine, scripted extension builds
@@ -320,6 +321,15 @@ Also note that although you *can* just specify a PHP version, major releases of
320321

321322
| Tags | PHP | nginx | mod lua | alpine | Notes |
322323
| ------------- | ------ | ------ | ------- | ------ | ----- |
324+
| 8.3-3.1.x | 8.3.1 | 1.24.0 | 0.10.24 | 3.18 |These versions are also tagged with an `-alpine` version suffix|
325+
| 8.2-3.1.x | 8.2.14 | 1.24.0 | 0.10.24 | 3.18 ||
326+
| 8.1-3.1.x | 8.1.27 | 1.24.0 | 0.10.24 | 3.18 ||
327+
| 8.0-3.1.x | 8.0.30 | 1.22.1 | 0.10.21 | 3.16 ||
328+
| 7.4-3.1.x | 7.4.33 | 1.22.1 | 0.10.21 | 3.16 ||
329+
| 7.3-3.1.x | 7.3.33 | 1.20.1 | 0.10.19 | 3.14 ||
330+
| 7.2-3.1.x | 7.2.34 | 1.18.0 | 0.10.15 | 3.12 ||
331+
| 7.1-3.1.x | 7.1.33 | 1.16.1 | 0.10.15 | 3.10 ||
332+
| | | | | |   |
323333
| 8.2-3.0.x | 8.2.3 | 1.22.1 | 0.10.21 | 3.16 |Composer 2|
324334
| 8.1-3.0.x | 8.1.16 | 1.22.1 | 0.10.21 | 3.16 ||
325335
| 8.0-3.0.x | 8.0.19 | 1.20.1 | 0.10.19 | 3.14 ||

0 commit comments

Comments
 (0)